aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r--arch/x86/kernel/apic_64.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 8a475793f736..868ec1deb19a 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -431,7 +431,8 @@ void __cpuinit check_boot_apic_timer_broadcast(void)
431 lapic_clockevent.features |= CLOCK_EVT_FEAT_DUMMY; 431 lapic_clockevent.features |= CLOCK_EVT_FEAT_DUMMY;
432 432
433 local_irq_enable(); 433 local_irq_enable();
434 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_FORCE, &boot_cpu_id); 434 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_FORCE,
435 &boot_cpu_physical_apicid);
435 local_irq_disable(); 436 local_irq_disable();
436} 437}
437 438
@@ -857,7 +858,7 @@ static int __init detect_init_APIC(void)
857 } 858 }
858 859
859 mp_lapic_addr = APIC_DEFAULT_PHYS_BASE; 860 mp_lapic_addr = APIC_DEFAULT_PHYS_BASE;
860 boot_cpu_id = 0; 861 boot_cpu_physical_apicid = 0;
861 return 0; 862 return 0;
862} 863}
863 864
@@ -882,7 +883,7 @@ void __init early_init_lapic_mapping(void)
882 * Fetch the APIC ID of the BSP in case we have a 883 * Fetch the APIC ID of the BSP in case we have a
883 * default configuration (or the MP table is broken). 884 * default configuration (or the MP table is broken).
884 */ 885 */
885 boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID)); 886 boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID));
886} 887}
887 888
888/** 889/**
@@ -909,7 +910,7 @@ void __init init_apic_mappings(void)
909 * Fetch the APIC ID of the BSP in case we have a 910 * Fetch the APIC ID of the BSP in case we have a
910 * default configuration (or the MP table is broken). 911 * default configuration (or the MP table is broken).
911 */ 912 */
912 boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID)); 913 boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID));
913} 914}
914 915
915/* 916/*
@@ -930,8 +931,8 @@ int __init APIC_init_uniprocessor(void)
930 931
931 verify_local_APIC(); 932 verify_local_APIC();
932 933
933 phys_cpu_present_map = physid_mask_of_physid(boot_cpu_id); 934 phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid);
934 apic_write(APIC_ID, SET_APIC_ID(boot_cpu_id)); 935 apic_write(APIC_ID, SET_APIC_ID(boot_cpu_physical_apicid));
935 936
936 setup_local_APIC(); 937 setup_local_APIC();
937 938