diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:25:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:02 -0400 |
commit | c70dcb74309cedfa64f0060f4a84792e873ceb53 (patch) | |
tree | eb2d31f3a9060632e82d4b6e0b648657b4d31859 /arch/x86/kernel/apic_64.c | |
parent | 9d97d0da71ad6c7ceb76b4e29b02bed1ee9d4cd2 (diff) |
x86: change boot_cpu_id to boot_cpu_physical_apicid
This is to match i386. The former name was cuter,
but the current is more meaningful and more general,
since cpu_id can be a logical id.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 13 |
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 | ||