]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: apic - use SET_APIC_DEST_FIELD instead of hardcoded shift
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 15 Aug 2008 11:51:20 +0000 (13:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 11:51:20 +0000 (13:51 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic_64.c

index 69a876be506fc647df977b64881d4257c623e9c1..77c5e5eb820eec6910449a5831e4ac13cc62c77f 100644 (file)
@@ -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);
 }