]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/x86/include/asm/uv/uv.h
Merge tag 'v4.12-rc4' into x86/mm, to pick up fixes
[mirror_ubuntu-hirsute-kernel.git] / arch / x86 / include / asm / uv / uv.h
CommitLineData
bdbcdd48
TH
1#ifndef _ASM_X86_UV_UV_H
2#define _ASM_X86_UV_UV_H
3
4enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
5
58105ef1
RD
6struct cpumask;
7struct mm_struct;
8
03b48632 9#ifdef CONFIG_X86_UV
bdbcdd48
TH
10
11extern enum uv_system_type get_uv_system_type(void);
12extern int is_uv_system(void);
74862b03 13extern int is_uv_hubless(void);
bdbcdd48 14extern void uv_cpu_init(void);
78c06176 15extern void uv_nmi_init(void);
bdbcdd48 16extern void uv_system_init(void);
bdbcdd48
TH
17extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
18 struct mm_struct *mm,
e7b52ffd 19 unsigned long start,
57c4f430 20 unsigned long end,
bdbcdd48
TH
21 unsigned int cpu);
22
03b48632 23#else /* X86_UV */
bdbcdd48
TH
24
25static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
26static inline int is_uv_system(void) { return 0; }
74862b03 27static inline int is_uv_hubless(void) { return 0; }
bdbcdd48
TH
28static inline void uv_cpu_init(void) { }
29static inline void uv_system_init(void) { }
bdbcdd48
TH
30static inline const struct cpumask *
31uv_flush_tlb_others(const struct cpumask *cpumask, struct mm_struct *mm,
e7b52ffd 32 unsigned long start, unsigned long end, unsigned int cpu)
bdbcdd48
TH
33{ return cpumask; }
34
03b48632 35#endif /* X86_UV */
bdbcdd48
TH
36
37#endif /* _ASM_X86_UV_UV_H */