diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-11 21:44:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-12 02:45:14 -0400 |
commit | 4c9961d56ec20c27ec5d02e49fd7427748312741 (patch) | |
tree | e3a0fd508aae031dcd06705a2ce77f7dd0a68c11 /arch/x86/kernel/io_apic_64.c | |
parent | 4696ca5bfd2697f5686f96d59cf0b6de14869b4e (diff) |
x86: make read_apic_id return final apicid
also remove GET_APIC_ID when read_apic_id is used.
need to apply after
[PATCH] x86: mach_apicdef.h need to include before smp.h
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index 877aa2e9d7e..2db0f98e2af 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -1246,7 +1246,7 @@ void __apicdebuginit print_local_APIC(void * dummy) | |||
1246 | printk("\n" KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n", | 1246 | printk("\n" KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n", |
1247 | smp_processor_id(), hard_smp_processor_id()); | 1247 | smp_processor_id(), hard_smp_processor_id()); |
1248 | v = apic_read(APIC_ID); | 1248 | v = apic_read(APIC_ID); |
1249 | printk(KERN_INFO "... APIC ID: %08x (%01x)\n", v, GET_APIC_ID(read_apic_id())); | 1249 | printk(KERN_INFO "... APIC ID: %08x (%01x)\n", v, read_apic_id()); |
1250 | v = apic_read(APIC_LVR); | 1250 | v = apic_read(APIC_LVR); |
1251 | printk(KERN_INFO "... APIC VERSION: %08x\n", v); | 1251 | printk(KERN_INFO "... APIC VERSION: %08x\n", v); |
1252 | ver = GET_APIC_VERSION(v); | 1252 | ver = GET_APIC_VERSION(v); |
@@ -1439,7 +1439,7 @@ void disable_IO_APIC(void) | |||
1439 | entry.dest_mode = 0; /* Physical */ | 1439 | entry.dest_mode = 0; /* Physical */ |
1440 | entry.delivery_mode = dest_ExtINT; /* ExtInt */ | 1440 | entry.delivery_mode = dest_ExtINT; /* ExtInt */ |
1441 | entry.vector = 0; | 1441 | entry.vector = 0; |
1442 | entry.dest = GET_APIC_ID(read_apic_id()); | 1442 | entry.dest = read_apic_id(); |
1443 | 1443 | ||
1444 | /* | 1444 | /* |
1445 | * Add it to the IO-APIC irq-routing table: | 1445 | * Add it to the IO-APIC irq-routing table: |