acpi_numa.h 623 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ACPI_NUMA_H
  3. #define __ACPI_NUMA_H
  4. #ifdef CONFIG_ACPI_NUMA
  5. #include <linux/kernel.h>
  6. #include <linux/numa.h>
  7. /* Proximity bitmap length */
  8. #if MAX_NUMNODES > 256
  9. #define MAX_PXM_DOMAINS MAX_NUMNODES
  10. #else
  11. #define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
  12. #endif
  13. extern int pxm_to_node(int);
  14. extern int node_to_pxm(int);
  15. extern int acpi_map_pxm_to_node(int);
  16. extern unsigned char acpi_srat_revision;
  17. extern int acpi_numa __initdata;
  18. extern void bad_srat(void);
  19. extern int srat_disabled(void);
  20. #endif /* CONFIG_ACPI_NUMA */
  21. #endif /* __ACP_NUMA_H */