]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: move switch_mm to its own file
authorGary Guo <gary@garyguo.net>
Wed, 27 Mar 2019 00:41:29 +0000 (00:41 +0000)
committerPalmer Dabbelt <palmer@sifive.com>
Fri, 17 May 2019 03:42:12 +0000 (20:42 -0700)
commit9fa65af584bbdd173be28296e14092eaa61fc129
treee90d492641c5dbbc02307894264a20ed9ccf53b7
parentf9162210a818b4df282a79183dd6ef42087300f8
riscv: move switch_mm to its own file

switch_mm is an expensive operations that has two users.
flush_icache_deferred is only called within switch_mm and can be moved
together. The function is expected to be more complicated when ASID
support is added, so clean up eagerly.

By moving them to a separate file we also removes some excessive
dependency of tlbflush.h and cacheflush.h.

Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/mmu_context.h
arch/riscv/mm/Makefile
arch/riscv/mm/context.c [new file with mode: 0644]