Skip to content

Commit

Permalink
um: use asm-generic/mmu_context.h for no-op implementations
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Piggin <[email protected]>
Cc: Jeff Dike <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Anton Ivanov <[email protected]>
Cc: [email protected]
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
npiggin authored and arndb committed Oct 27, 2020
1 parent ca0f34b commit 9431da3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions arch/um/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
* end asm-generic/mm_hooks.h functions
*/

#define deactivate_mm(tsk,mm) do { } while (0)

extern void force_flush_all(void);

#define activate_mm activate_mm
static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
{
/*
Expand All @@ -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,
struct task_struct *tsk)
{
}

#define init_new_context init_new_context
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);

#include <asm-generic/mmu_context.h>

#endif

0 comments on commit 9431da3

Please sign in to comment.