diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2009-01-28 20:52:57 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-29 08:16:43 -0500 |
commit | 83d7aeabe4cf20e59b5d7fd56a75cfd0e0b6b880 (patch) | |
tree | c36d2fdc574db45085917c9b61cbb8f2678c85c1 | |
parent | 1dcdd3d15ecea0c22a09d4d001a39d425fceff2c (diff) |
x86: remove mach_apic.h, fix
Use apic_read() instead of open-coded mmio.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/genapic.h | 2 |
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) | |||
145 | { | 145 | { |
146 | unsigned int reg; | 146 | unsigned int reg; |
147 | 147 | ||
148 | reg = *(u32 *)(APIC_BASE + APIC_ID); | 148 | reg = apic_read(APIC_ID); |
149 | 149 | ||
150 | return apic->get_apic_id(reg); | 150 | return apic->get_apic_id(reg); |
151 | } | 151 | } |