23 lines
477 B
C
Raw Normal View History

2026-01-21 18:59:54 +08:00
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_ARM_PARAVIRT_H
#define _ASM_ARM_PARAVIRT_H
#ifdef CONFIG_PARAVIRT
2026-01-29 22:25:33 +08:00
#include <linux/static_call_types.h>
2026-01-21 18:59:54 +08:00
struct static_key;
extern struct static_key paravirt_steal_enabled;
extern struct static_key paravirt_steal_rq_enabled;
2026-01-29 22:25:33 +08:00
u64 dummy_steal_clock(int cpu);
2026-01-21 18:59:54 +08:00
2026-01-29 22:25:33 +08:00
DECLARE_STATIC_CALL(pv_steal_clock, dummy_steal_clock);
2026-01-21 18:59:54 +08:00
static inline u64 paravirt_steal_clock(int cpu)
{
2026-01-29 22:25:33 +08:00
return static_call(pv_steal_clock)(cpu);
2026-01-21 18:59:54 +08:00
}
#endif
#endif