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

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

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: linux-parisc@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
4146bdab 5449edc5

+6 -6
+6 -6
arch/parisc/include/asm/mmu_context.h
··· 7 7 #include <linux/atomic.h> 8 8 #include <asm-generic/mm_hooks.h> 9 9 10 - static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 11 - { 12 - } 13 - 14 10 /* on PA-RISC, we actually have enough contexts to justify an allocator 15 11 * for them. prumpf */ 16 12 17 13 extern unsigned long alloc_sid(void); 18 14 extern void free_sid(unsigned long); 19 15 16 + #define init_new_context init_new_context 20 17 static inline int 21 18 init_new_context(struct task_struct *tsk, struct mm_struct *mm) 22 19 { ··· 23 26 return 0; 24 27 } 25 28 29 + #define destroy_context destroy_context 26 30 static inline void 27 31 destroy_context(struct mm_struct *mm) 28 32 { ··· 69 71 } 70 72 #define switch_mm_irqs_off switch_mm_irqs_off 71 73 72 - #define deactivate_mm(tsk,mm) do { } while (0) 73 - 74 + #define activate_mm activate_mm 74 75 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) 75 76 { 76 77 /* ··· 87 90 88 91 switch_mm(prev,next,current); 89 92 } 93 + 94 + #include <asm-generic/mmu_context.h> 95 + 90 96 #endif