mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
a0c2d9c1de
Right now if a file includes acpi_numa.h and they don't happen to include linux/numa.h before it, they get the following warning: ./include/acpi/acpi_numa.h:9:5: warning: "MAX_NUMNODES" is not defined [-Wundef] #if MAX_NUMNODES > 256 ^~~~~~~~~~~~ Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
26 lines
584 B
C
26 lines
584 B
C
#ifndef __ACPI_NUMA_H
|
|
#define __ACPI_NUMA_H
|
|
|
|
#ifdef CONFIG_ACPI_NUMA
|
|
#include <linux/kernel.h>
|
|
#include <linux/numa.h>
|
|
|
|
/* Proximity bitmap length */
|
|
#if MAX_NUMNODES > 256
|
|
#define MAX_PXM_DOMAINS MAX_NUMNODES
|
|
#else
|
|
#define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
|
|
#endif
|
|
|
|
extern int pxm_to_node(int);
|
|
extern int node_to_pxm(int);
|
|
extern int acpi_map_pxm_to_node(int);
|
|
extern unsigned char acpi_srat_revision;
|
|
extern int acpi_numa __initdata;
|
|
|
|
extern void bad_srat(void);
|
|
extern int srat_disabled(void);
|
|
|
|
#endif /* CONFIG_ACPI_NUMA */
|
|
#endif /* __ACP_NUMA_H */
|