Skip to content
Unverified Commit 8237c524 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Palmer Dabbelt
Browse files

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: default avatarJisheng Zhang <jszhang@kernel.org>
[Palmer: drop the QEMU performance numbers, and update the comment]
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent 50bae95e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment