riscv: KVM: Switch has_svinval() to riscv_has_extension_unlikely()
authorAndrew Jones <ajones@ventanamicro.com>
Sat, 28 Jan 2023 17:28:55 +0000 (01:28 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Feb 2023 07:29:44 +0000 (23:29 -0800)
commite8ad17d2b5f38e595d597a3e2419d6d7cc727b17
tree162250540be27620ce9e9f2db7d3e24746dc3579
parent95bc69a47be2d5cdccf40ba3f23c99e9a6c57597
riscv: KVM: Switch has_svinval() to riscv_has_extension_unlikely()

Switch has_svinval() from static branch to the new helper
riscv_has_extension_unlikely().

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Acked-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20230128172856.3814-13-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kvm/tlb.c