Commit e8ad17d2 authored by Andrew Jones's avatar Andrew Jones Committed by Palmer Dabbelt

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: default avatarAndrew Jones <ajones@ventanamicro.com>
Reviewed-by: default avatarGuo Ren <guoren@kernel.org>
Acked-by: default avatarAnup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20230128172856.3814-13-jszhang@kernel.orgSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 95bc69a4
...@@ -15,8 +15,7 @@ ...@@ -15,8 +15,7 @@
#include <asm/hwcap.h> #include <asm/hwcap.h>
#include <asm/insn-def.h> #include <asm/insn-def.h>
#define has_svinval() \ #define has_svinval() riscv_has_extension_unlikely(RISCV_ISA_EXT_SVINVAL)
static_branch_unlikely(&riscv_isa_ext_keys[RISCV_ISA_EXT_KEY_SVINVAL])
void kvm_riscv_local_hfence_gvma_vmid_gpa(unsigned long vmid, void kvm_riscv_local_hfence_gvma_vmid_gpa(unsigned long vmid,
gpa_t gpa, gpa_t gpsz, gpa_t gpa, gpa_t gpsz,
......
Markdown is supported
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