From: Mike Travis Date: Wed, 30 Jan 2008 12:33:21 +0000 (+0100) Subject: x86: fix early NUMA-id access X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0164fe16247ac2e1b697a9bf0e71df81497c4709;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git x86: fix early NUMA-id access Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c index 04cbecaeca81..f828e6a6973d 100644 --- a/arch/x86/mm/srat_64.c +++ b/arch/x86/mm/srat_64.c @@ -382,7 +382,8 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end) setup_node_bootmem(i, nodes[i].start, nodes[i].end); for (i = 0; i < NR_CPUS; i++) { - int node = cpu_to_node(i); + int node = early_cpu_to_node(i); + if (node == NUMA_NO_NODE) continue; if (!node_isset(node, node_possible_map))