Commit 83d7aeab authored by Suresh Siddha's avatar Suresh Siddha Committed by Ingo Molnar

x86: remove mach_apic.h, fix

Use apic_read() instead of open-coded mmio.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1dcdd3d1
...@@ -145,7 +145,7 @@ static inline unsigned int read_apic_id(void) ...@@ -145,7 +145,7 @@ static inline unsigned int read_apic_id(void)
{ {
unsigned int reg; unsigned int reg;
reg = *(u32 *)(APIC_BASE + APIC_ID); reg = apic_read(APIC_ID);
return apic->get_apic_id(reg); return apic->get_apic_id(reg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment