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