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/io_apic_64.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/io_apic_64.c')
-rw-r--r-- | arch/x86/kernel/io_apic_64.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 6dd33628f28a..0ac92d6acf57 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -1068,8 +1068,7 @@ void __apicdebuginit print_local_APIC(void * dummy) | |||
1068 | 1068 | ||
1069 | printk("\n" KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n", | 1069 | printk("\n" KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n", |
1070 | smp_processor_id(), hard_smp_processor_id()); | 1070 | smp_processor_id(), hard_smp_processor_id()); |
1071 | v = apic_read(APIC_ID); | 1071 | printk(KERN_INFO "... APIC ID: %08x (%01x)\n", v, GET_APIC_ID(read_apic_id())); |
1072 | printk(KERN_INFO "... APIC ID: %08x (%01x)\n", v, GET_APIC_ID(v)); | ||
1073 | v = apic_read(APIC_LVR); | 1072 | v = apic_read(APIC_LVR); |
1074 | printk(KERN_INFO "... APIC VERSION: %08x\n", v); | 1073 | printk(KERN_INFO "... APIC VERSION: %08x\n", v); |
1075 | ver = GET_APIC_VERSION(v); | 1074 | ver = GET_APIC_VERSION(v); |
@@ -1263,7 +1262,7 @@ void disable_IO_APIC(void) | |||
1263 | entry.dest_mode = 0; /* Physical */ | 1262 | entry.dest_mode = 0; /* Physical */ |
1264 | entry.delivery_mode = dest_ExtINT; /* ExtInt */ | 1263 | entry.delivery_mode = dest_ExtINT; /* ExtInt */ |
1265 | entry.vector = 0; | 1264 | entry.vector = 0; |
1266 | entry.dest = GET_APIC_ID(apic_read(APIC_ID)); | 1265 | entry.dest = GET_APIC_ID(read_apic_id()); |
1267 | 1266 | ||
1268 | /* | 1267 | /* |
1269 | * Add it to the IO-APIC irq-routing table: | 1268 | * Add it to the IO-APIC irq-routing table: |