diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-05-24 11:36:36 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-25 16:32:51 -0400 |
commit | ad63ba169d45ccb6594eb35a6c31c421fe70ff45 (patch) | |
tree | fb63b045070a640882f1e649bef05151cbf9aeea /arch | |
parent | 4b82b277707a39b97271439c475f186f63ec4692 (diff) |
x86: nmi_32/64.c - use apic_write_around instead of apic_write
apic_write_around will be expanded to apic_write in 64bit mode
anyway. Only a few CPUs (well, old CPUs to be precise) requires
such an action. In general it should not hurt and could be cleaned
up for apic_write (just in case)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: hpa@zytor.com
Cc: mingo@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/nmi_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/nmi_64.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c index 7714e8478213..ec5842b4dd68 100644 --- a/arch/x86/kernel/nmi_32.c +++ b/arch/x86/kernel/nmi_32.c | |||
@@ -248,7 +248,7 @@ void acpi_nmi_enable(void) | |||
248 | 248 | ||
249 | static void __acpi_nmi_disable(void *__unused) | 249 | static void __acpi_nmi_disable(void *__unused) |
250 | { | 250 | { |
251 | apic_write(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED); | 251 | apic_write_around(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED); |
252 | } | 252 | } |
253 | 253 | ||
254 | /* | 254 | /* |
diff --git a/arch/x86/kernel/nmi_64.c b/arch/x86/kernel/nmi_64.c index c1ea671525e5..f546e3164a74 100644 --- a/arch/x86/kernel/nmi_64.c +++ b/arch/x86/kernel/nmi_64.c | |||
@@ -215,7 +215,7 @@ late_initcall(init_lapic_nmi_sysfs); | |||
215 | 215 | ||
216 | static void __acpi_nmi_enable(void *__unused) | 216 | static void __acpi_nmi_enable(void *__unused) |
217 | { | 217 | { |
218 | apic_write(APIC_LVT0, APIC_DM_NMI); | 218 | apic_write_around(APIC_LVT0, APIC_DM_NMI); |
219 | } | 219 | } |
220 | 220 | ||
221 | /* | 221 | /* |
@@ -229,7 +229,7 @@ void acpi_nmi_enable(void) | |||
229 | 229 | ||
230 | static void __acpi_nmi_disable(void *__unused) | 230 | static void __acpi_nmi_disable(void *__unused) |
231 | { | 231 | { |
232 | apic_write(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED); | 232 | apic_write_around(APIC_LVT0, APIC_DM_NMI | APIC_LVT_MASKED); |
233 | } | 233 | } |
234 | 234 | ||
235 | /* | 235 | /* |