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

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

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
6dfc3f5b 94f89922

+4 -8
+4 -8
arch/alpha/include/asm/mmu_context.h
··· 214 214 tbiap(); 215 215 } 216 216 217 - #define deactivate_mm(tsk,mm) do { } while (0) 218 - 219 217 #ifdef CONFIG_ALPHA_GENERIC 220 218 # define switch_mm(a,b,c) alpha_mv.mv_switch_mm((a),(b),(c)) 221 219 # define activate_mm(x,y) alpha_mv.mv_activate_mm((x),(y)) ··· 227 229 # endif 228 230 #endif 229 231 232 + #define init_new_context init_new_context 230 233 static inline int 231 234 init_new_context(struct task_struct *tsk, struct mm_struct *mm) 232 235 { ··· 241 242 return 0; 242 243 } 243 244 244 - extern inline void 245 - destroy_context(struct mm_struct *mm) 246 - { 247 - /* Nothing to do. */ 248 - } 249 - 245 + #define enter_lazy_tlb enter_lazy_tlb 250 246 static inline void 251 247 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 252 248 { 253 249 task_thread_info(tsk)->pcb.ptbr 254 250 = ((unsigned long)mm->pgd - IDENT_ADDR) >> PAGE_SHIFT; 255 251 } 252 + 253 + #include <asm-generic/mmu_context.h> 256 254 257 255 #ifdef __MMU_EXTERN_INLINE 258 256 #undef __EXTERN_INLINE