]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/arm/include/asm/paravirt.h
arm: introduce CONFIG_PARAVIRT, PARAVIRT_TIME_ACCOUNTING and pv_time_ops
[mirror_ubuntu-hirsute-kernel.git] / arch / arm / include / asm / paravirt.h
CommitLineData
02c2433b
SS
1#ifndef _ASM_ARM_PARAVIRT_H
2#define _ASM_ARM_PARAVIRT_H
3
4#ifdef CONFIG_PARAVIRT
5struct static_key;
6extern struct static_key paravirt_steal_enabled;
7extern struct static_key paravirt_steal_rq_enabled;
8
9struct pv_time_ops {
10 unsigned long long (*steal_clock)(int cpu);
11};
12extern struct pv_time_ops pv_time_ops;
13
14static inline u64 paravirt_steal_clock(int cpu)
15{
16 return pv_time_ops.steal_clock(cpu);
17}
18#endif
19
20#endif