]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ed1a81f0885f21221d280d319b266d536883757
treef74de6d33829e5c0d2163c8d11c23ab01ba410da
parent1cbaf31f54968492c92c80ad5626d33b3188521e
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