summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/genapic.h
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2009-01-28 17:52:57 -0800
committerIngo Molnar <mingo@elte.hu>2009-01-29 14:16:43 +0100
commit83d7aeabe4cf20e59b5d7fd56a75cfd0e0b6b880 (patch)
treec36d2fdc574db45085917c9b61cbb8f2678c85c1 /arch/x86/include/asm/genapic.h
parent1dcdd3d15ecea0c22a09d4d001a39d425fceff2c (diff)
downloadblackbird-op-linux-83d7aeabe4cf20e59b5d7fd56a75cfd0e0b6b880.tar.gz
blackbird-op-linux-83d7aeabe4cf20e59b5d7fd56a75cfd0e0b6b880.zip
x86: remove mach_apic.h, fix
Use apic_read() instead of open-coded mmio. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/genapic.h')
-rw-r--r--arch/x86/include/asm/genapic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h
index ce3655a4948d..ccfcd19d5b7d 100644
--- a/arch/x86/include/asm/genapic.h
+++ b/arch/x86/include/asm/genapic.h
@@ -145,7 +145,7 @@ static inline unsigned int read_apic_id(void)
{
unsigned int reg;
- reg = *(u32 *)(APIC_BASE + APIC_ID);
+ reg = apic_read(APIC_ID);
return apic->get_apic_id(reg);
}
OpenPOWER on IntegriCloud