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

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

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
d98295d3 292f70d7

+4 -4
+4 -4
arch/arm64/include/asm/mmu_context.h
··· 174 174 * Setting a reserved TTBR0 or EPD0 would work, but it all gets ugly when you 175 175 * take CPU migration into account. 176 176 */ 177 - #define destroy_context(mm) do { } while(0) 178 177 void check_and_switch_context(struct mm_struct *mm); 179 178 179 + #define init_new_context(tsk, mm) init_new_context(tsk, mm) 180 180 static inline int 181 181 init_new_context(struct task_struct *tsk, struct mm_struct *mm) 182 182 { ··· 208 208 } 209 209 #endif 210 210 211 + #define enter_lazy_tlb enter_lazy_tlb 211 212 static inline void 212 213 enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) 213 214 { ··· 249 248 update_saved_ttbr0(tsk, next); 250 249 } 251 250 252 - #define deactivate_mm(tsk,mm) do { } while (0) 253 - #define activate_mm(prev,next) switch_mm(prev, next, current) 254 - 255 251 void verify_cpu_asid_bits(void); 256 252 void post_ttbr_update_workaround(void); 257 253 258 254 unsigned long arm64_mm_context_get(struct mm_struct *mm); 259 255 void arm64_mm_context_put(struct mm_struct *mm); 256 + 257 + #include <asm-generic/mmu_context.h> 260 258 261 259 #endif /* !__ASSEMBLY__ */ 262 260