diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-15 11:51:20 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 11:51:20 (GMT) |
commit | ed4e5ec177d20504c51aebb93db12d57716cde9c (patch) | |
tree | ce71eb6458c5ae9670a753f986b99b803327015b /arch/x86/kernel/apic_64.c | |
parent | 5aa37e4f0614e3b1f385426ce1e962e84c275bdf (diff) | |
download | linux-fsl-qoriq-ed4e5ec177d20504c51aebb93db12d57716cde9c.tar.xz |
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>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 69a876b..77c5e5e 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); } |