x86/paravirt: Switch time pvops functions to use static_call()
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:09 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 15:17:52 +0000 (16:17 +0100)
commita0e2bf7cb7006b5a58ee81f4da4fe575875f2781
tree74da4d815e17d058066f7d615e0b6c462b155f71
parent6ea312d95e0226b306bb4b8ee3a0727d880378cb
x86/paravirt: Switch time pvops functions to use static_call()

The time pvops functions are the only ones left which might be
used in 32-bit mode and which return a 64-bit value.

Switch them to use the static_call() mechanism instead of pvops, as
this allows quite some simplification of the pvops implementation.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311142319.4723-5-jgross@suse.com
15 files changed:
arch/arm/include/asm/paravirt.h
arch/arm/kernel/paravirt.c
arch/arm64/include/asm/paravirt.h
arch/arm64/kernel/paravirt.c
arch/x86/Kconfig
arch/x86/include/asm/mshyperv.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/kernel/cpu/vmware.c
arch/x86/kernel/kvm.c
arch/x86/kernel/kvmclock.c
arch/x86/kernel/paravirt.c
arch/x86/kernel/tsc.c
arch/x86/xen/time.c
drivers/xen/time.c