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>
Showing
- arch/csky/abiv1/inc/abi/ckmmu.h 6 additions, 0 deletionsarch/csky/abiv1/inc/abi/ckmmu.h
- arch/csky/abiv2/inc/abi/ckmmu.h 10 additions, 0 deletionsarch/csky/abiv2/inc/abi/ckmmu.h
- arch/csky/include/asm/mmu.h 1 addition, 0 deletionsarch/csky/include/asm/mmu.h
- arch/csky/include/asm/mmu_context.h 10 additions, 2 deletionsarch/csky/include/asm/mmu_context.h
- arch/csky/mm/Makefile 1 addition, 0 deletionsarch/csky/mm/Makefile
- arch/csky/mm/context.c 46 additions, 0 deletionsarch/csky/mm/context.c
arch/csky/mm/context.c
0 → 100644
Please register or sign in to comment