x86: remove mach_apic.h, fix
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 29 Jan 2009 01:52:57 +0000 (17:52 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 29 Jan 2009 13:16:43 +0000 (14:16 +0100)
Use apic_read() instead of open-coded mmio.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/genapic.h

index ce3655a4948d5b7487621ac354686b497a11f5ea..ccfcd19d5b7d4c5e1174dc836b879807356e9a6e 100644 (file)
@@ -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);
 }