]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
bdbcdd48 TH |
2 | #ifndef _ASM_X86_UV_UV_H |
3 | #define _ASM_X86_UV_UV_H | |
4 | ||
a2055abe AL |
5 | #include <asm/tlbflush.h> |
6 | ||
bdbcdd48 TH |
7 | enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC}; |
8 | ||
58105ef1 RD |
9 | struct cpumask; |
10 | struct mm_struct; | |
11 | ||
03b48632 | 12 | #ifdef CONFIG_X86_UV |
bdbcdd48 TH |
13 | |
14 | extern enum uv_system_type get_uv_system_type(void); | |
15 | extern int is_uv_system(void); | |
74862b03 | 16 | extern int is_uv_hubless(void); |
bdbcdd48 | 17 | extern void uv_cpu_init(void); |
78c06176 | 18 | extern void uv_nmi_init(void); |
bdbcdd48 | 19 | extern void uv_system_init(void); |
bdbcdd48 | 20 | extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask, |
a2055abe | 21 | const struct flush_tlb_info *info); |
bdbcdd48 | 22 | |
03b48632 | 23 | #else /* X86_UV */ |
bdbcdd48 TH |
24 | |
25 | static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; } | |
26 | static inline int is_uv_system(void) { return 0; } | |
74862b03 | 27 | static inline int is_uv_hubless(void) { return 0; } |
bdbcdd48 TH |
28 | static inline void uv_cpu_init(void) { } |
29 | static inline void uv_system_init(void) { } | |
bdbcdd48 | 30 | static inline const struct cpumask * |
a2055abe AL |
31 | uv_flush_tlb_others(const struct cpumask *cpumask, |
32 | const struct flush_tlb_info *info) | |
bdbcdd48 TH |
33 | { return cpumask; } |
34 | ||
03b48632 | 35 | #endif /* X86_UV */ |
bdbcdd48 TH |
36 | |
37 | #endif /* _ASM_X86_UV_UV_H */ |