Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / include / acpi / acpi_numa.h
bloba4c6ef809e27ab2331310c21fae3933ff4a455c5
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ACPI_NUMA_H
3 #define __ACPI_NUMA_H
5 #ifdef CONFIG_ACPI_NUMA
6 #include <linux/kernel.h>
7 #include <linux/numa.h>
9 /* Proximity bitmap length */
10 #if MAX_NUMNODES > 256
11 #define MAX_PXM_DOMAINS MAX_NUMNODES
12 #else
13 #define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
14 #endif
16 extern int pxm_to_node(int);
17 extern int node_to_pxm(int);
18 extern int acpi_map_pxm_to_node(int);
19 extern unsigned char acpi_srat_revision;
20 extern void disable_srat(void);
22 extern void bad_srat(void);
23 extern int srat_disabled(void);
25 #else /* CONFIG_ACPI_NUMA */
26 static inline void disable_srat(void)
29 static inline int pxm_to_node(int pxm)
31 return 0;
33 #endif /* CONFIG_ACPI_NUMA */
35 #ifdef CONFIG_ACPI_HMAT
36 extern void disable_hmat(void);
37 #else /* CONFIG_ACPI_HMAT */
38 static inline void disable_hmat(void)
41 #endif /* CONFIG_ACPI_HMAT */
42 #endif /* __ACP_NUMA_H */