um: use asm-generic/mmu_context.h for no-op implementations
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com> Cc: linux-um@lists.infradead.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
ca0f34b575
commit
9431da33cb
|
@ -37,10 +37,9 @@ static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
|
||||||
* end asm-generic/mm_hooks.h functions
|
* end asm-generic/mm_hooks.h functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define deactivate_mm(tsk,mm) do { } while (0)
|
|
||||||
|
|
||||||
extern void force_flush_all(void);
|
extern void force_flush_all(void);
|
||||||
|
|
||||||
|
#define activate_mm activate_mm
|
||||||
static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
|
static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -66,13 +65,12 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void enter_lazy_tlb(struct mm_struct *mm,
|
#define init_new_context init_new_context
|
||||||
struct task_struct *tsk)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
extern int init_new_context(struct task_struct *task, struct mm_struct *mm);
|
extern int init_new_context(struct task_struct *task, struct mm_struct *mm);
|
||||||
|
|
||||||
|
#define destroy_context destroy_context
|
||||||
extern void destroy_context(struct mm_struct *mm);
|
extern void destroy_context(struct mm_struct *mm);
|
||||||
|
|
||||||
|
#include <asm-generic/mmu_context.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue