diff options
author | Jack Steiner <steiner@sgi.com> | 2008-03-28 15:12:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:33 -0400 |
commit | 05f2d12c3563dea8c81b301f9f3cf7919af23b13 (patch) | |
tree | d696f29159d311d8d1fde7f6bd1b01261ca713b9 /arch/x86/kernel/apic_32.c | |
parent | a5c15d419d4b68535222b51f9054dd08d5e67470 (diff) |
x86: change GET_APIC_ID() from an inline function to an out-of-line function
Introduce a function to read the local APIC_ID.
This change is in preparation for additional changes to
the APICID functions that will come in a later patch.
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index a99398f71234..4905a11b30e3 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -1195,7 +1195,7 @@ void __init init_apic_mappings(void) | |||
1195 | * default configuration (or the MP table is broken). | 1195 | * default configuration (or the MP table is broken). |
1196 | */ | 1196 | */ |
1197 | if (boot_cpu_physical_apicid == -1U) | 1197 | if (boot_cpu_physical_apicid == -1U) |
1198 | boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); | 1198 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
1199 | 1199 | ||
1200 | #ifdef CONFIG_X86_IO_APIC | 1200 | #ifdef CONFIG_X86_IO_APIC |
1201 | { | 1201 | { |
@@ -1265,7 +1265,7 @@ int __init APIC_init_uniprocessor(void) | |||
1265 | * might be zero if read from MP tables. Get it from LAPIC. | 1265 | * might be zero if read from MP tables. Get it from LAPIC. |
1266 | */ | 1266 | */ |
1267 | #ifdef CONFIG_CRASH_DUMP | 1267 | #ifdef CONFIG_CRASH_DUMP |
1268 | boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); | 1268 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
1269 | #endif | 1269 | #endif |
1270 | phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid); | 1270 | phys_cpu_present_map = physid_mask_of_physid(boot_cpu_physical_apicid); |
1271 | 1271 | ||