]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64/paravirt: Use common code for paravirt_steal_clock()
authorJuergen Gross <jgross@suse.com>
Mon, 5 Jan 2026 11:05:07 +0000 (12:05 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 12 Jan 2026 15:30:00 +0000 (16:30 +0100)
Remove the arch-specific variant of paravirt_steal_clock() and use
the common one instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260105110520.21356-9-jgross@suse.com
arch/arm64/Kconfig
arch/arm64/include/asm/paravirt.h
arch/arm64/kernel/paravirt.c

index 93173f0a09c7deb07b46ab4f16a1a0e4320dfbf1..abbfc546edf3ecd533f3ce4612bc53ab3077f48e 100644 (file)
@@ -1561,6 +1561,7 @@ config CC_HAVE_SHADOW_CALL_STACK
 
 config PARAVIRT
        bool "Enable paravirtualization code"
+       select HAVE_PV_STEAL_CLOCK_GEN
        help
          This changes the kernel so it can modify itself when it is run
          under a hypervisor, potentially improving performance significantly
index c9f7590baacbbe9869f08d61cae8e0674a33036f..cb037e742372aa8f3949581bb56d7174fde0d26d 100644 (file)
@@ -3,16 +3,6 @@
 #define _ASM_ARM64_PARAVIRT_H
 
 #ifdef CONFIG_PARAVIRT
-#include <linux/static_call_types.h>
-
-u64 dummy_steal_clock(int cpu);
-
-DECLARE_STATIC_CALL(pv_steal_clock, dummy_steal_clock);
-
-static inline u64 paravirt_steal_clock(int cpu)
-{
-       return static_call(pv_steal_clock)(cpu);
-}
 
 int __init pv_time_init(void);
 
index 943b60ce12f42d6b1402ea1ee7856dafc312927a..572efb96b23fec6d1d964f8fcd1d1c98638dac3b 100644 (file)
 #include <asm/pvclock-abi.h>
 #include <asm/smp_plat.h>
 
-static u64 native_steal_clock(int cpu)
-{
-       return 0;
-}
-
-DEFINE_STATIC_CALL(pv_steal_clock, native_steal_clock);
-
 struct pv_time_stolen_time_region {
        struct pvclock_vcpu_stolen_time __rcu *kaddr;
 };