From: Yinghai Lu Date: Mon, 25 Feb 2008 07:23:09 +0000 (-0800) Subject: x86: fix memoryless node oops during boot X-Git-Tag: v2.6.25-rc8~79^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=475613b9e374bf0c15340eb166a962da04aa02e8;p=linux-2.6-omap-h63xx.git x86: fix memoryless node oops during boot fix oops during boot reported in this thread: http://lkml.org/lkml/2008/2/6/65 enable booting on memoryless nodes. Reported-by: Kamalesh Babulal Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index 7637dc91c79..f4f7ecfb898 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -801,7 +801,7 @@ static void __cpuinit srat_detect_node(void) /* Don't do the funky fallback heuristics the AMD version employs for now. */ node = apicid_to_node[apicid]; - if (node == NUMA_NO_NODE) + if (node == NUMA_NO_NODE || !node_online(node)) node = first_node(node_online_map); numa_set_node(cpu, node);