Skip to content

Commit

Permalink
openrisc: 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: Jonas Bonn <[email protected]>
Cc: Stefan Kristiansson <[email protected]>
Cc: Stafford Horne <[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 e2e251c commit 5449edc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions arch/openrisc/include/asm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

#include <asm-generic/mm_hooks.h>

#define init_new_context init_new_context
extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
#define destroy_context destroy_context
extern void destroy_context(struct mm_struct *mm);
extern void switch_mm(struct mm_struct *prev, struct mm_struct *next,
struct task_struct *tsk);

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

#define activate_mm(prev, next) switch_mm((prev), (next), NULL)

/* current active pgd - this is similar to other processors pgd
Expand All @@ -32,8 +32,6 @@ extern void switch_mm(struct mm_struct *prev, struct mm_struct *next,

extern volatile pgd_t *current_pgd[]; /* defined in arch/openrisc/mm/fault.c */

static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
{
}
#include <asm-generic/mmu_context.h>

#endif

0 comments on commit 5449edc

Please sign in to comment.