Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
f62408e0 5b3a582d

+2 -8
+2 -8
arch/nds32/include/asm/mmu_context.h
··· 9 9 #include <asm/proc-fns.h> 10 10 #include <asm-generic/mm_hooks.h> 11 11 12 + #define init_new_context init_new_context 12 13 static inline int 13 14 init_new_context(struct task_struct *tsk, struct mm_struct *mm) 14 15 { 15 16 mm->context.id = 0; 16 17 return 0; 17 18 } 18 - 19 - #define destroy_context(mm) do { } while(0) 20 19 21 20 #define CID_BITS 9 22 21 extern spinlock_t cid_lock; ··· 46 47 __new_context(mm); 47 48 } 48 49 49 - static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 50 - { 51 - } 52 - 53 50 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, 54 51 struct task_struct *tsk) 55 52 { ··· 57 62 } 58 63 } 59 64 60 - #define deactivate_mm(tsk,mm) do { } while (0) 61 - #define activate_mm(prev,next) switch_mm(prev, next, NULL) 65 + #include <asm-generic/mmu_context.h> 62 66 63 67 #endif