]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbf2ff75566ef83bfe77dfb12818d4c12b321226
treee8e0c0f8c5071343902090aa225fb92bd5747536
parent0a4f9383ac494caea4852a80d92debc5486d566d
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]