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

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

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
5b3a582d 97f13010

+4 -7
+4 -7
arch/mips/include/asm/mmu_context.h
··· 124 124 #define cpu_asid(cpu, mm) \ 125 125 (cpu_context((cpu), (mm)) & cpu_asid_mask(&cpu_data[cpu])) 126 126 127 - static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 128 - { 129 - } 130 - 131 127 extern void get_new_mmu_context(struct mm_struct *mm); 132 128 extern void check_mmu_context(struct mm_struct *mm); 133 129 extern void check_switch_mmu_context(struct mm_struct *mm); ··· 132 136 * Initialize the context related info for a new mm_struct 133 137 * instance. 134 138 */ 139 + #define init_new_context init_new_context 135 140 static inline int 136 141 init_new_context(struct task_struct *tsk, struct mm_struct *mm) 137 142 { ··· 177 180 * Destroy context related info for an mm_struct that is about 178 181 * to be put to rest. 179 182 */ 183 + #define destroy_context destroy_context 180 184 static inline void destroy_context(struct mm_struct *mm) 181 185 { 182 186 dsemul_mm_cleanup(mm); 183 187 } 184 - 185 - #define activate_mm(prev, next) switch_mm(prev, next, current) 186 - #define deactivate_mm(tsk, mm) do { } while (0) 187 188 188 189 static inline void 189 190 drop_mmu_context(struct mm_struct *mm) ··· 231 236 232 237 local_irq_restore(flags); 233 238 } 239 + 240 + #include <asm-generic/mmu_context.h> 234 241 235 242 #endif /* _ASM_MMU_CONTEXT_H */