x86: remove mach_apic.h, fix

Use apic_read() instead of open-coded mmio.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Suresh Siddha 2009-01-28 17:52:57 -08:00 committed by Ingo Molnar
parent 1dcdd3d15e
commit 83d7aeabe4

View 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);
}