Commit 746192ff authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Arnd Bergmann

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

Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Acked-by: default avatarGuo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent d98295d3
......@@ -24,11 +24,6 @@
#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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment