mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
nds32: use asm-generic/mmu_context.h for no-op implementations
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Greentime Hu <green.hu@gmail.com> Cc: Nick Hu <nickhu@andestech.com> Cc: Vincent Chen <deanbo422@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
committed by
Arnd Bergmann
parent
5b3a582d94
commit
f62408e035
@@ -9,6 +9,7 @@
|
|||||||
#include <asm/proc-fns.h>
|
#include <asm/proc-fns.h>
|
||||||
#include <asm-generic/mm_hooks.h>
|
#include <asm-generic/mm_hooks.h>
|
||||||
|
|
||||||
|
#define init_new_context init_new_context
|
||||||
static inline int
|
static inline int
|
||||||
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
@@ -16,8 +17,6 @@ init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define destroy_context(mm) do { } while(0)
|
|
||||||
|
|
||||||
#define CID_BITS 9
|
#define CID_BITS 9
|
||||||
extern spinlock_t cid_lock;
|
extern spinlock_t cid_lock;
|
||||||
extern unsigned int cpu_last_cid;
|
extern unsigned int cpu_last_cid;
|
||||||
@@ -47,10 +46,6 @@ static inline void check_context(struct mm_struct *mm)
|
|||||||
__new_context(mm);
|
__new_context(mm);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
||||||
struct task_struct *tsk)
|
struct task_struct *tsk)
|
||||||
{
|
{
|
||||||
@@ -62,7 +57,6 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#define deactivate_mm(tsk,mm) do { } while (0)
|
#include <asm-generic/mmu_context.h>
|
||||||
#define activate_mm(prev,next) switch_mm(prev, next, NULL)
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user