]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: not set node to cpu_to_node if the node is not online
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Tue, 19 Feb 2008 23:35:54 +0000 (15:35 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 4 Mar 2008 16:10:12 +0000 (17:10 +0100)
commit7c9e92b6cdc9937eee53600e5d49a25e421463dd
treec034c1843625d87444fab06fb58654da954684c2
parent18a8622101154277df97e24097ed17aace84fa3a
x86: not set node to cpu_to_node if the node is not online

resolve boot problem reported by Mel Gorman:

   http://lkml.org/lkml/2008/2/13/404

init_cpu_to_node will use cpu->apic (from MADT or mptable) and
apic->node(from SRAT or AMD config space with k8_bus_64.c) to have
cpu->node mapping, and later identify_cpu will overwrite them
again...(with nearby_node...)

this patch checks if the node is online, otherwise it will not
update cpu_node map. so keep cpu_node map to online node before
identify_cpu..., to prevent possible error.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/numa_64.c