1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_LOONGARCH_PARAVIRT_H 3 #define _ASM_LOONGARCH_PARAVIRT_H 4 5 #ifdef CONFIG_PARAVIRT 6 7 #include <linux/jump_label.h> 8 9 DECLARE_STATIC_KEY_FALSE(virt_preempt_key); 10 DECLARE_STATIC_KEY_FALSE(virt_spin_lock_key); 11 DECLARE_PER_CPU(struct kvm_steal_time, steal_time); 12 13 int __init pv_ipi_init(void); 14 int __init pv_time_init(void); 15 int __init pv_spinlock_init(void); 16 17 #else 18 pv_ipi_init(void)19static inline int pv_ipi_init(void) 20 { 21 return 0; 22 } 23 pv_time_init(void)24static inline int pv_time_init(void) 25 { 26 return 0; 27 } 28 pv_spinlock_init(void)29static inline int pv_spinlock_init(void) 30 { 31 return 0; 32 } 33 34 #endif // CONFIG_PARAVIRT 35 #endif 36