cpu to node relationship fixup: map cpu to node
commit1ada841196360876c5077ae2431ce5b90f9bbec2
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Mon, 25 Sep 2006 23:25:31 +0000 (25 16:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:26 +0000 (13 13:23 -0700)
tree13a836246b535058f54666b227df186a07dc976c
parentb1fc5287ba80bcbb7a4cdade1b62de6bb1c91479
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: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/ia64/kernel/numa.c
arch/ia64/kernel/topology.c
include/asm-ia64/numa.h