aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/mm/numa_emulation.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/mm/numa_emulation.c b/arch/x86/mm/numa_emulation.c
index aeecea93820f..75b31dc0f329 100644
--- a/arch/x86/mm/numa_emulation.c
+++ b/arch/x86/mm/numa_emulation.c
@@ -417,9 +417,7 @@ void __cpuinit numa_add_cpu(int cpu)
417{ 417{
418 int physnid, nid; 418 int physnid, nid;
419 419
420 nid = numa_cpu_node(cpu); 420 nid = early_cpu_to_node(cpu);
421 if (nid == NUMA_NO_NODE)
422 nid = early_cpu_to_node(cpu);
423 BUG_ON(nid == NUMA_NO_NODE || !node_online(nid)); 421 BUG_ON(nid == NUMA_NO_NODE || !node_online(nid));
424 422
425 physnid = emu_nid_to_phys[nid]; 423 physnid = emu_nid_to_phys[nid];