x86: change NR_CPUS arrays in numa_64
[deliverable/linux.git] / arch / x86 / kernel / smpboot_64.c
index a2076b5f12afb4084e765f7adadfe7ed2102c48d..a8bc2bcdb74aefef12dfe05b2df9907c8417c76b 100644 (file)
@@ -861,9 +861,12 @@ void __init smp_set_apicids(void)
        int cpu;
 
        for_each_possible_cpu(cpu) {
-               if (per_cpu_offset(cpu))
+               if (per_cpu_offset(cpu)) {
                        per_cpu(x86_cpu_to_apicid, cpu) =
                                                x86_cpu_to_apicid_init[cpu];
+                       per_cpu(x86_cpu_to_node_map, cpu) =
+                                               x86_cpu_to_node_map_init[cpu];
+               }
                else
                        printk(KERN_NOTICE "per_cpu_offset zero for cpu %d\n",
                                                                        cpu);
@@ -871,6 +874,7 @@ void __init smp_set_apicids(void)
 
        /* indicate the early static arrays are gone */
        x86_cpu_to_apicid_early_ptr = NULL;
+       x86_cpu_to_node_map_early_ptr = NULL;
 }
 
 static void __init smp_cpu_index_default(void)
This page took 0.02497 seconds and 5 git commands to generate.