blob: a4441784503b5bcade00e20c5b67ac496a9f1143 [file] [log] [blame]
Michael S. Tsirkin3d2d8272009-09-21 17:03:51 -07001#ifndef _LINUX_MMU_CONTEXT_H
2#define _LINUX_MMU_CONTEXT_H
3
Andy Lutomirskif98db602016-04-26 09:39:06 -07004#include <asm/mmu_context.h>
5
Michael S. Tsirkin3d2d8272009-09-21 17:03:51 -07006struct mm_struct;
7
8void use_mm(struct mm_struct *mm);
9void unuse_mm(struct mm_struct *mm);
10
Andy Lutomirskif98db602016-04-26 09:39:06 -070011/* 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. Tsirkin3d2d8272009-09-21 17:03:51 -070016#endif