diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-15 07:51:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-15 07:51:20 -0400 |
commit | ed4e5ec177d20504c51aebb93db12d57716cde9c (patch) | |
tree | ce71eb6458c5ae9670a753f986b99b803327015b /arch/x86/kernel/apic_64.c | |
parent | 5aa37e4f0614e3b1f385426ce1e962e84c275bdf (diff) |
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 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) | |||
150 | 150 | ||
151 | void xapic_icr_write(u32 low, u32 id) | 151 | void xapic_icr_write(u32 low, u32 id) |
152 | { | 152 | { |
153 | apic_write(APIC_ICR2, id << 24); | 153 | apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(id)); |
154 | apic_write(APIC_ICR, low); | 154 | apic_write(APIC_ICR, low); |
155 | } | 155 | } |
156 | 156 | ||