KVM: x86: Replace static_call_cond() with static_call()
The use of static_call_cond() is essentially the same as static_call() on x86 (e.g. static_call() now handles a NULL pointer as a NOP), so replace it with static_call() to simplify the code. Link: https://lore.kernel.org/all/3916caa1dcd114301a49beafa5030eca396745c1.1679456900.git.jpoimboe@kernel.org/ Suggested-by:Sean Christopherson <seanjc@google.com> Signed-off-by:
Wei Wang <wei.w.wang@intel.com> Link: https://lore.kernel.org/r/20240507133103.15052-2-wei.w.wang@intel.com Signed-off-by:
Sean Christopherson <seanjc@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm-x86-ops.h 1 addition, 2 deletionsarch/x86/include/asm/kvm-x86-ops.h
- arch/x86/include/asm/kvm-x86-pmu-ops.h 1 addition, 2 deletionsarch/x86/include/asm/kvm-x86-pmu-ops.h
- arch/x86/include/asm/kvm_host.h 2 additions, 2 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/irq.c 1 addition, 1 deletionarch/x86/kvm/irq.c
- arch/x86/kvm/lapic.c 12 additions, 12 deletionsarch/x86/kvm/lapic.c
- arch/x86/kvm/pmu.c 3 additions, 3 deletionsarch/x86/kvm/pmu.c
- arch/x86/kvm/x86.c 13 additions, 13 deletionsarch/x86/kvm/x86.c
Please register or sign in to comment