From: Peter Zijlstra Date: Thu, 24 Jun 2021 09:41:12 +0000 (+0200) Subject: x86/paravirt: Use PVOP_* for paravirt calls X-Git-Tag: iomap-folio-5.17-old~274^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eac46b323b28215ad19d53390737df4aa336ac14;p=users%2Fwilly%2Flinux.git x86/paravirt: Use PVOP_* for paravirt calls Doing unconditional indirect calls through the pv_ops vector is weird. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Juergen Gross Link: https://lore.kernel.org/r/20210624095148.437720419@infradead.org --- diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 89a53227f210..a13a9a346539 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -52,11 +52,11 @@ void __init paravirt_set_cap(void); /* The paravirtualized I/O functions */ static inline void slow_down_io(void) { - pv_ops.cpu.io_delay(); + PVOP_VCALL0(cpu.io_delay); #ifdef REALLY_SLOW_IO - pv_ops.cpu.io_delay(); - pv_ops.cpu.io_delay(); - pv_ops.cpu.io_delay(); + PVOP_VCALL0(cpu.io_delay); + PVOP_VCALL0(cpu.io_delay); + PVOP_VCALL0(cpu.io_delay); #endif }