aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/smpboot_64.c')
-rw-r--r--arch/x86/kernel/smpboot_64.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index a2076b5f12af..a8bc2bcdb74a 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -861,9 +861,12 @@ void __init smp_set_apicids(void)
861 int cpu; 861 int cpu;
862 862
863 for_each_possible_cpu(cpu) { 863 for_each_possible_cpu(cpu) {
864 if (per_cpu_offset(cpu)) 864 if (per_cpu_offset(cpu)) {
865 per_cpu(x86_cpu_to_apicid, cpu) = 865 per_cpu(x86_cpu_to_apicid, cpu) =
866 x86_cpu_to_apicid_init[cpu]; 866 x86_cpu_to_apicid_init[cpu];
867 per_cpu(x86_cpu_to_node_map, cpu) =
868 x86_cpu_to_node_map_init[cpu];
869 }
867 else 870 else
868 printk(KERN_NOTICE "per_cpu_offset zero for cpu %d\n", 871 printk(KERN_NOTICE "per_cpu_offset zero for cpu %d\n",
869 cpu); 872 cpu);
@@ -871,6 +874,7 @@ void __init smp_set_apicids(void)
871 874
872 /* indicate the early static arrays are gone */ 875 /* indicate the early static arrays are gone */
873 x86_cpu_to_apicid_early_ptr = NULL; 876 x86_cpu_to_apicid_early_ptr = NULL;
877 x86_cpu_to_node_map_early_ptr = NULL;
874} 878}
875 879
876static void __init smp_cpu_index_default(void) 880static void __init smp_cpu_index_default(void)