Skip to content

Commit

Permalink
x86: remove mach_apic.h, fix
Browse files Browse the repository at this point in the history
Use apic_read() instead of open-coded mmio.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Jan 29, 2009
1 parent 1dcdd3d commit 83d7aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/genapic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 83d7aea

Please sign in to comment.