Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64/paravirt: Use common code for paravirt_steal_clock()

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

authored by

Juergen Gross and committed by
Borislav Petkov (AMD)
ad892c48 15518e63

+1 -17
+1
arch/arm64/Kconfig
··· 1561 1561 1562 1562 config PARAVIRT 1563 1563 bool "Enable paravirtualization code" 1564 + select HAVE_PV_STEAL_CLOCK_GEN 1564 1565 help 1565 1566 This changes the kernel so it can modify itself when it is run 1566 1567 under a hypervisor, potentially improving performance significantly
-10
arch/arm64/include/asm/paravirt.h
··· 3 3 #define _ASM_ARM64_PARAVIRT_H 4 4 5 5 #ifdef CONFIG_PARAVIRT 6 - #include <linux/static_call_types.h> 7 - 8 - u64 dummy_steal_clock(int cpu); 9 - 10 - DECLARE_STATIC_CALL(pv_steal_clock, dummy_steal_clock); 11 - 12 - static inline u64 paravirt_steal_clock(int cpu) 13 - { 14 - return static_call(pv_steal_clock)(cpu); 15 - } 16 6 17 7 int __init pv_time_init(void); 18 8
-7
arch/arm64/kernel/paravirt.c
··· 25 25 #include <asm/pvclock-abi.h> 26 26 #include <asm/smp_plat.h> 27 27 28 - static u64 native_steal_clock(int cpu) 29 - { 30 - return 0; 31 - } 32 - 33 - DEFINE_STATIC_CALL(pv_steal_clock, native_steal_clock); 34 - 35 28 struct pv_time_stolen_time_region { 36 29 struct pvclock_vcpu_stolen_time __rcu *kaddr; 37 30 };