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

nios2: use asm-generic/mmu_context.h for no-op implementations

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
e2e251cc f62408e0

+4 -17
+4 -17
arch/nios2/include/asm/mmu_context.h
··· 26 26 */ 27 27 extern pgd_t *pgd_current; 28 28 29 - static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 30 - { 31 - } 32 - 33 29 /* 34 30 * Initialize the context related info for a new mm_struct instance. 35 31 * 36 32 * Set all new contexts to 0, that way the generation will never match 37 33 * the currently running generation when this context is switched in. 38 34 */ 35 + #define init_new_context init_new_context 39 36 static inline int init_new_context(struct task_struct *tsk, 40 37 struct mm_struct *mm) 41 38 { ··· 40 43 return 0; 41 44 } 42 45 43 - /* 44 - * Destroy context related info for an mm_struct that is about 45 - * to be put to rest. 46 - */ 47 - static inline void destroy_context(struct mm_struct *mm) 48 - { 49 - } 50 - 51 46 void switch_mm(struct mm_struct *prev, struct mm_struct *next, 52 47 struct task_struct *tsk); 53 - 54 - static inline void deactivate_mm(struct task_struct *tsk, 55 - struct mm_struct *mm) 56 - { 57 - } 58 48 59 49 /* 60 50 * After we have set current->mm to a new value, this activates 61 51 * the context for the new mm so we see the new mappings. 62 52 */ 53 + #define activate_mm activate_mm 63 54 void activate_mm(struct mm_struct *prev, struct mm_struct *next); 55 + 56 + #include <asm-generic/mmu_context.h> 64 57 65 58 #endif /* _ASM_NIOS2_MMU_CONTEXT_H */