Skip to content

Commit ad892c4

Browse files
jgross1bp3tk0v
authored andcommitted
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
1 parent 15518e6 commit ad892c4

3 files changed

Lines changed: 1 addition & 17 deletions

File tree

arch/arm64/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,6 +1561,7 @@ config CC_HAVE_SHADOW_CALL_STACK
15611561

15621562
config PARAVIRT
15631563
bool "Enable paravirtualization code"
1564+
select HAVE_PV_STEAL_CLOCK_GEN
15641565
help
15651566
This changes the kernel so it can modify itself when it is run
15661567
under a hypervisor, potentially improving performance significantly

arch/arm64/include/asm/paravirt.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
#define _ASM_ARM64_PARAVIRT_H
44

55
#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-
}
166

177
int __init pv_time_init(void);
188

arch/arm64/kernel/paravirt.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525
#include <asm/pvclock-abi.h>
2626
#include <asm/smp_plat.h>
2727

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-
3528
struct pv_time_stolen_time_region {
3629
struct pvclock_vcpu_stolen_time __rcu *kaddr;
3730
};

0 commit comments

Comments
 (0)