csky: Use generic asid algorithm to implement switch_mm
authorGuo Ren <ren_guo@c-sky.com>
Tue, 18 Jun 2019 12:33:32 +0000 (20:33 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Fri, 19 Jul 2019 06:21:36 +0000 (14:21 +0800)
commit22d55f02b8922a097cd4be1e2f131dfa7ef65901
treee8e0c0f8c5071343902090aa225fb92bd5747536
parenta231b8839cd4259de1d37a78165739a4d5d08e72
csky: Use generic asid algorithm to implement switch_mm

Use linux generic asid/vmid algorithm to implement csky
switch_mm function. The algorithm is from arm and it could
work with SMP system. It'll help reduce tlb flush for
switch_mm in task/vm switch.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
arch/csky/abiv1/inc/abi/ckmmu.h
arch/csky/abiv2/inc/abi/ckmmu.h
arch/csky/include/asm/mmu.h
arch/csky/include/asm/mmu_context.h
arch/csky/mm/Makefile
arch/csky/mm/context.c [new file with mode: 0644]