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: v2.6.28-rc1~711^2~1^2~32 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed4e5ec177d20504c51aebb93db12d57716cde9c;p=linux-2.6-omap-h63xx.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 69a876be506..77c5e5eb820 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); }