summaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/numa.h
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2006-09-26 01:25:31 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-26 02:38:36 +0200
commit3212fe1594e577463bc8601d28aa008f520c3377 (patch)
tree6f4270c825c2df9f4a361360dab0963ecaed34c1 /include/asm-ia64/numa.h
parent[PATCH] cpu to node relationship fixup: acpi_map_cpu2node (diff)
downloadlinux-3212fe1594e577463bc8601d28aa008f520c3377.tar.xz
linux-3212fe1594e577463bc8601d28aa008f520c3377.zip
[PATCH] cpu to node relationship fixup: map cpu to node
Assume that a cpu is *physically* offlined at boot time... Because smpboot.c::smp_boot_cpu_map() canoot find cpu's sapicid, numa.c::build_cpu_to_node_map() cannot build cpu<->node map for offlined cpu. For such cpus, cpu_to_node map should be fixed at cpu-hot-add. This mapping should be done before cpu onlining. This patch also handles cpu hotremove case. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: "Luck, Tony" <tony.luck@intel.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r--include/asm-ia64/numa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-ia64/numa.h b/include/asm-ia64/numa.h
index e5a8260593a5..e0a1d173e42d 100644
--- a/include/asm-ia64/numa.h
+++ b/include/asm-ia64/numa.h
@@ -64,6 +64,10 @@ extern int paddr_to_nid(unsigned long paddr);
#define local_nodeid (cpu_to_node_map[smp_processor_id()])
+extern void map_cpu_to_node(int cpu, int nid);
+extern void unmap_cpu_from_node(int cpu, int nid);
+
+
#else /* !CONFIG_NUMA */
#define paddr_to_nid(addr) 0