xref: /openbmc/linux/arch/x86/include/asm/uv/uv.h (revision 6aa7de05)
1 #ifndef _ASM_X86_UV_UV_H
2 #define _ASM_X86_UV_UV_H
3 
4 #include <asm/tlbflush.h>
5 
6 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
7 
8 struct cpumask;
9 struct mm_struct;
10 
11 #ifdef CONFIG_X86_UV
12 
13 extern enum uv_system_type get_uv_system_type(void);
14 extern int is_uv_system(void);
15 extern int is_uv_hubless(void);
16 extern void uv_cpu_init(void);
17 extern void uv_nmi_init(void);
18 extern void uv_system_init(void);
19 extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
20 						 const struct flush_tlb_info *info);
21 
22 #else	/* X86_UV */
23 
24 static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
25 static inline int is_uv_system(void)	{ return 0; }
26 static inline int is_uv_hubless(void)	{ return 0; }
27 static inline void uv_cpu_init(void)	{ }
28 static inline void uv_system_init(void)	{ }
29 static inline const struct cpumask *
30 uv_flush_tlb_others(const struct cpumask *cpumask,
31 		    const struct flush_tlb_info *info)
32 { return cpumask; }
33 
34 #endif	/* X86_UV */
35 
36 #endif	/* _ASM_X86_UV_UV_H */
37