Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ASM_ARM_XEN_HYPERVISOR_H
0003 #define _ASM_ARM_XEN_HYPERVISOR_H
0004 
0005 #include <linux/init.h>
0006 
0007 extern struct shared_info *HYPERVISOR_shared_info;
0008 extern struct start_info *xen_start_info;
0009 
0010 /* Lazy mode for batching updates / context switch */
0011 enum paravirt_lazy_mode {
0012     PARAVIRT_LAZY_NONE,
0013     PARAVIRT_LAZY_MMU,
0014     PARAVIRT_LAZY_CPU,
0015 };
0016 
0017 static inline enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
0018 {
0019     return PARAVIRT_LAZY_NONE;
0020 }
0021 
0022 #ifdef CONFIG_XEN
0023 void __init xen_early_init(void);
0024 #else
0025 static inline void xen_early_init(void) { return; }
0026 #endif
0027 
0028 #ifdef CONFIG_HOTPLUG_CPU
0029 static inline void xen_arch_register_cpu(int num)
0030 {
0031 }
0032 
0033 static inline void xen_arch_unregister_cpu(int num)
0034 {
0035 }
0036 #endif
0037 
0038 #endif /* _ASM_ARM_XEN_HYPERVISOR_H */