diff options
author | Gary Guo <gary@garyguo.net> | 2019-03-27 03:41:29 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-05-17 06:42:12 +0300 |
commit | f6635f873a605576fa1983c605655a8721475c22 (patch) | |
tree | e90d492641c5dbbc02307894264a20ed9ccf53b7 /arch/riscv/mm/Makefile | |
parent | 58de77545e53b94cd6c816776197dade598632c5 (diff) | |
download | linux-f6635f873a605576fa1983c605655a8721475c22.tar.xz |
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>
Diffstat (limited to 'arch/riscv/mm/Makefile')
-rw-r--r-- | arch/riscv/mm/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index b68aac701803..0f1295d8731f 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -9,3 +9,4 @@ obj-y += fault.o obj-y += extable.o obj-y += ioremap.o obj-y += cacheflush.o +obj-y += context.o |