mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
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:
parent
1dcdd3d15e
commit
83d7aeabe4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user