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

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

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Guo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Nicholas Piggin and committed by
Arnd Bergmann
746192ff d98295d3

+3 -5
+3 -5
arch/csky/include/asm/mmu_context.h
··· 24 24 #define cpu_asid(mm) (atomic64_read(&mm->context.asid) & ASID_MASK) 25 25 26 26 #define init_new_context(tsk,mm) ({ atomic64_set(&(mm)->context.asid, 0); 0; }) 27 - #define activate_mm(prev,next) switch_mm(prev, next, current) 28 - 29 - #define destroy_context(mm) do {} while (0) 30 - #define enter_lazy_tlb(mm, tsk) do {} while (0) 31 - #define deactivate_mm(tsk, mm) do {} while (0) 32 27 33 28 void check_and_switch_context(struct mm_struct *mm, unsigned int cpu); 34 29 ··· 41 46 42 47 flush_icache_deferred(next); 43 48 } 49 + 50 + #include <asm-generic/mmu_context.h> 51 + 44 52 #endif /* __ASM_CSKY_MMU_CONTEXT_H */