xref: /linux/arch/arm64/include/asm/paravirt.h (revision a3a4a816b4b194c45d0217e8b9e08b2639802cda)
1 #ifndef _ASM_ARM64_PARAVIRT_H
2 #define _ASM_ARM64_PARAVIRT_H
3 
4 #ifdef CONFIG_PARAVIRT
5 struct static_key;
6 extern struct static_key paravirt_steal_enabled;
7 extern struct static_key paravirt_steal_rq_enabled;
8 
9 struct pv_time_ops {
10 	unsigned long long (*steal_clock)(int cpu);
11 };
12 extern struct pv_time_ops pv_time_ops;
13 
14 static inline u64 paravirt_steal_clock(int cpu)
15 {
16 	return pv_time_ops.steal_clock(cpu);
17 }
18 #endif
19 
20 #endif
21