xref: /openbmc/linux/arch/arm/include/asm/paravirt.h (revision bc5aa3a0)
1 #ifndef _ASM_ARM_PARAVIRT_H
2 #define _ASM_ARM_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