hugetlb: introduce generic version of hugetlb_free_pgd_range
[linux/fpc-iii.git] / arch / x86 / include / asm / uv / uv.h
blobe60c45fd3679bf900a8e1d53d2cb731c316d519f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_UV_UV_H
3 #define _ASM_X86_UV_UV_H
5 #include <asm/tlbflush.h>
7 enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
9 struct cpumask;
10 struct mm_struct;
12 #ifdef CONFIG_X86_UV
13 #include <linux/efi.h>
15 extern enum uv_system_type get_uv_system_type(void);
16 static inline bool is_early_uv_system(void)
18 return !((efi.uv_systab == EFI_INVALID_TABLE_ADDR) || !efi.uv_systab);
20 extern int is_uv_system(void);
21 extern int is_uv_hubless(void);
22 extern void uv_cpu_init(void);
23 extern void uv_nmi_init(void);
24 extern void uv_system_init(void);
25 extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
26 const struct flush_tlb_info *info);
28 #else /* X86_UV */
30 static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
31 static inline bool is_early_uv_system(void) { return 0; }
32 static inline int is_uv_system(void) { return 0; }
33 static inline int is_uv_hubless(void) { return 0; }
34 static inline void uv_cpu_init(void) { }
35 static inline void uv_system_init(void) { }
36 static inline const struct cpumask *
37 uv_flush_tlb_others(const struct cpumask *cpumask,
38 const struct flush_tlb_info *info)
39 { return cpumask; }
41 #endif /* X86_UV */
43 #endif /* _ASM_X86_UV_UV_H */