1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2762834e8SYasunori Goto #ifndef __ACPI_NUMA_H 3762834e8SYasunori Goto #define __ACPI_NUMA_H 4762834e8SYasunori Goto 5762834e8SYasunori Goto #ifdef CONFIG_ACPI_NUMA 6762834e8SYasunori Goto #include <linux/kernel.h> 7a0c2d9c1SRoss Zwisler #include <linux/numa.h> 8762834e8SYasunori Goto 9762834e8SYasunori Goto /* Proximity bitmap length */ 10762834e8SYasunori Goto #if MAX_NUMNODES > 256 11762834e8SYasunori Goto #define MAX_PXM_DOMAINS MAX_NUMNODES 12762834e8SYasunori Goto #else 13762834e8SYasunori Goto #define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */ 14762834e8SYasunori Goto #endif 15762834e8SYasunori Goto 16f363d16fSAaron Durbin extern int pxm_to_node(int); 17f363d16fSAaron Durbin extern int node_to_pxm(int); 188ff6f48dSLuck, Tony extern int acpi_map_pxm_to_node(int); 198df0eb7cSKurt Garloff extern unsigned char acpi_srat_revision; 20e84025e2SDavid Daney extern int acpi_numa __initdata; 21e84025e2SDavid Daney 22e84025e2SDavid Daney extern void bad_srat(void); 23e84025e2SDavid Daney extern int srat_disabled(void); 24762834e8SYasunori Goto 25*4849bc77SNathan Chancellor #else /* CONFIG_ACPI_NUMA */ 26*4849bc77SNathan Chancellor static inline int pxm_to_node(int pxm) 27*4849bc77SNathan Chancellor { 28*4849bc77SNathan Chancellor return 0; 29*4849bc77SNathan Chancellor } 30762834e8SYasunori Goto #endif /* CONFIG_ACPI_NUMA */ 31762834e8SYasunori Goto #endif /* __ACP_NUMA_H */ 32