Michael S. Tsirkin | 3d2d827 | 2009-09-21 17:03:51 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_MMU_CONTEXT_H |
| 2 | #define _LINUX_MMU_CONTEXT_H |
| 3 | |
Andy Lutomirski | f98db60 | 2016-04-26 09:39:06 -0700 | [diff] [blame] | 4 | #include <asm/mmu_context.h> |
| 5 | |
Michael S. Tsirkin | 3d2d827 | 2009-09-21 17:03:51 -0700 | [diff] [blame] | 6 | struct mm_struct; |
| 7 | |
| 8 | void use_mm(struct mm_struct *mm); |
| 9 | void unuse_mm(struct mm_struct *mm); |
| 10 | |
Andy Lutomirski | f98db60 | 2016-04-26 09:39:06 -0700 | [diff] [blame] | 11 | /* Architectures that care about IRQ state in switch_mm can override this. */ |
| 12 | #ifndef switch_mm_irqs_off |
| 13 | # define switch_mm_irqs_off switch_mm |
| 14 | #endif |
| 15 | |
Michael S. Tsirkin | 3d2d827 | 2009-09-21 17:03:51 -0700 | [diff] [blame] | 16 | #endif |