diff options
author | Yasunori Goto <y-goto@jp.fujitsu.com> | 2006-06-23 05:03:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:42:48 -0400 |
commit | 762834e8bf46bf41ce9034d062a7c1f8563175f3 (patch) | |
tree | fb134ef41772ba61050a08cc4ed92c50cd057658 /include/acpi | |
parent | d6277db4ab271862ed599da08d78961c70f00002 (diff) |
[PATCH] Unify pxm_to_node() and node_to_pxm()
Consolidate the various arch-specific implementations of pxm_to_node() and
node_to_pxm() into a single generic version.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Andi Kleen <ak@muc.de>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_numa.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/acpi/acpi_numa.h b/include/acpi/acpi_numa.h new file mode 100644 index 000000000000..1049f2a0a6db --- /dev/null +++ b/include/acpi/acpi_numa.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef __ACPI_NUMA_H | ||
2 | #define __ACPI_NUMA_H | ||
3 | |||
4 | #ifdef CONFIG_ACPI_NUMA | ||
5 | #include <linux/kernel.h> | ||
6 | |||
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 | |||
14 | extern int __cpuinitdata pxm_to_node_map[MAX_PXM_DOMAINS]; | ||
15 | extern int __cpuinitdata node_to_pxm_map[MAX_NUMNODES]; | ||
16 | |||
17 | extern int __cpuinit pxm_to_node(int); | ||
18 | extern int __cpuinit node_to_pxm(int); | ||
19 | extern int __cpuinit acpi_map_pxm_to_node(int); | ||
20 | extern void __cpuinit acpi_unmap_pxm_to_node(int); | ||
21 | |||
22 | #endif /* CONFIG_ACPI_NUMA */ | ||
23 | #endif /* __ACP_NUMA_H */ | ||