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>
This commit is contained in:
Guo Ren
2019-06-18 20:33:32 +08:00
parent a231b8839c
commit 22d55f02b8
6 changed files with 74 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
#define __ASM_CSKY_MMU_H
typedef struct {
atomic64_t asid;
void *vdso;
} mm_context_t;