csky: use asm-generic/mmu_context.h for no-op implementations
authorNicholas Piggin <npiggin@gmail.com>
Tue, 1 Sep 2020 14:15:22 +0000 (00:15 +1000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 27 Oct 2020 15:02:34 +0000 (16:02 +0100)
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>
arch/csky/include/asm/mmu_context.h

index abdf1f1..b227d29 100644 (file)
 #define cpu_asid(mm)           (atomic64_read(&mm->context.asid) & ASID_MASK)
 
 #define init_new_context(tsk,mm)       ({ atomic64_set(&(mm)->context.asid, 0); 0; })
-#define activate_mm(prev,next)         switch_mm(prev, next, current)
-
-#define destroy_context(mm)            do {} while (0)
-#define enter_lazy_tlb(mm, tsk)                do {} while (0)
-#define deactivate_mm(tsk, mm)         do {} while (0)
 
 void check_and_switch_context(struct mm_struct *mm, unsigned int cpu);
 
@@ -46,4 +41,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
 
        flush_icache_deferred(next);
 }
+
+#include <asm-generic/mmu_context.h>
+
 #endif /* __ASM_CSKY_MMU_CONTEXT_H */