0001
0002 #ifndef _ASM_ARM64_PARAVIRT_H
0003 #define _ASM_ARM64_PARAVIRT_H
0004
0005 #ifdef CONFIG_PARAVIRT
0006 #include <linux/static_call_types.h>
0007
0008 struct static_key;
0009 extern struct static_key paravirt_steal_enabled;
0010 extern struct static_key paravirt_steal_rq_enabled;
0011
0012 u64 dummy_steal_clock(int cpu);
0013
0014 DECLARE_STATIC_CALL(pv_steal_clock, dummy_steal_clock);
0015
0016 static inline u64 paravirt_steal_clock(int cpu)
0017 {
0018 return static_call(pv_steal_clock)(cpu);
0019 }
0020
0021 int __init pv_time_init(void);
0022
0023 #else
0024
0025 #define pv_time_init() do {} while (0)
0026
0027 #endif
0028
0029 #endif