mirror of https://gitee.com/openkylin/linux.git
x86: apic - use SET_APIC_DEST_FIELD instead of hardcoded shift
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
5aa37e4f06
commit
ed4e5ec177
|
@ -150,7 +150,7 @@ u32 safe_xapic_wait_icr_idle(void)
|
||||||
|
|
||||||
void xapic_icr_write(u32 low, u32 id)
|
void xapic_icr_write(u32 low, u32 id)
|
||||||
{
|
{
|
||||||
apic_write(APIC_ICR2, id << 24);
|
apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(id));
|
||||||
apic_write(APIC_ICR, low);
|
apic_write(APIC_ICR, low);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue