drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / include / asm / paravirt.h
blobc0abde70fc2ce983ad2ee81b8a9b7b6c3d37a6f8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_RISCV_PARAVIRT_H
3 #define _ASM_RISCV_PARAVIRT_H
5 #ifdef CONFIG_PARAVIRT
6 #include <linux/static_call_types.h>
8 struct static_key;
9 extern struct static_key paravirt_steal_enabled;
10 extern struct static_key paravirt_steal_rq_enabled;
12 u64 dummy_steal_clock(int cpu);
14 DECLARE_STATIC_CALL(pv_steal_clock, dummy_steal_clock);
16 static inline u64 paravirt_steal_clock(int cpu)
18 return static_call(pv_steal_clock)(cpu);
21 int __init pv_time_init(void);
23 #else
25 #define pv_time_init() do {} while (0)
27 #endif /* CONFIG_PARAVIRT */
28 #endif /* _ASM_RISCV_PARAVIRT_H */