From: Cyrill Gorcunov Date: Fri, 15 Aug 2008 11:51:20 +0000 (+0200) Subject: x86: apic - use SET_APIC_DEST_FIELD instead of hardcoded shift X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~29910^2~1^2~32 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ed4e5ec177d20504c51aebb93db12d57716cde9c;p=mirror_ubuntu-artful-kernel.git x86: apic - use SET_APIC_DEST_FIELD instead of hardcoded shift Signed-off-by: Cyrill Gorcunov Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 69a876be506f..77c5e5eb820e 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c @@ -150,7 +150,7 @@ u32 safe_xapic_wait_icr_idle(void) 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); }