diff options
Diffstat (limited to 'arch/x86/include/asm')
-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 | } |