Skip to content

Commit

Permalink
x86: fix early NUMA-id access
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Mike Travis authored and Ingo Molnar committed Jan 30, 2008
1 parent 834beda commit 0164fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/mm/srat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0164fe1

Please sign in to comment.