blob: 1e3a74f94131eb15448f9c48c8410d75602949cd [file] [log] [blame]
Yasunori Goto762834e2006-06-23 02:03:19 -07001#ifndef __ACPI_NUMA_H
2#define __ACPI_NUMA_H
3
4#ifdef CONFIG_ACPI_NUMA
5#include <linux/kernel.h>
Ross Zwislera0c2d9c2017-07-21 16:51:23 -06006#include <linux/numa.h>
Yasunori Goto762834e2006-06-23 02:03:19 -07007
8/* Proximity bitmap length */
9#if MAX_NUMNODES > 256
10#define MAX_PXM_DOMAINS MAX_NUMNODES
11#else
Len Brownfd350942007-05-09 23:34:35 -040012#define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
Yasunori Goto762834e2006-06-23 02:03:19 -070013#endif
14
Aaron Durbinf363d162007-05-16 22:11:06 -070015extern int pxm_to_node(int);
16extern int node_to_pxm(int);
Luck, Tony8ff6f482007-05-24 13:57:40 -070017extern int acpi_map_pxm_to_node(int);
Kurt Garloff8df0eb7c2012-01-17 04:18:02 -050018extern unsigned char acpi_srat_revision;
David Daneye84025e2016-05-24 15:35:39 -070019extern int acpi_numa __initdata;
20
21extern void bad_srat(void);
22extern int srat_disabled(void);
Yasunori Goto762834e2006-06-23 02:03:19 -070023
24#endif /* CONFIG_ACPI_NUMA */
25#endif /* __ACP_NUMA_H */