riscv: Optimize switch_mm by passing "cpu" to flush_icache_deferred()
authorJisheng Zhang <jszhang@kernel.org>
Tue, 11 May 2021 17:42:31 +0000 (01:42 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 26 May 2021 05:50:52 +0000 (22:50 -0700)
commit8237c5243a614d33fe339bc844f90aa2b393c2a8
treef74de6d33829e5c0d2163c8d11c23ab01ba410da
parent50bae95e17c6dd0b7a2a3a92ad8808067234e9ef
riscv: Optimize switch_mm by passing "cpu" to flush_icache_deferred()

Directly passing the cpu to flush_icache_deferred() rather than calling
smp_processor_id() again.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
[Palmer: drop the QEMU performance numbers, and update the comment]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/context.c