aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/nmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/nmi.c')
-rw-r--r--arch/x86/kernel/nmi.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
index cbd4fa3c475b..27ca8f69b466 100644
--- a/arch/x86/kernel/nmi.c
+++ b/arch/x86/kernel/nmi.c
@@ -487,14 +487,16 @@ int proc_nmi_enabled(struct ctl_table *table, int write, struct file *file,
487 return -EIO; 487 return -EIO;
488 } 488 }
489 489
490#ifdef CONFIG_X86_64
491 /* if nmi_watchdog is not set yet, then set it */ 490 /* if nmi_watchdog is not set yet, then set it */
492 nmi_watchdog_default(); 491 nmi_watchdog_default();
493#else 492
494 if (lapic_watchdog_ok()) 493#ifdef CONFIG_X86_32
495 nmi_watchdog = NMI_LOCAL_APIC; 494 if (nmi_watchdog == NMI_NONE) {
496 else 495 if (lapic_watchdog_ok())
497 nmi_watchdog = NMI_IO_APIC; 496 nmi_watchdog = NMI_LOCAL_APIC;
497 else
498 nmi_watchdog = NMI_IO_APIC;
499 }
498#endif 500#endif
499 501
500 if (nmi_watchdog == NMI_LOCAL_APIC) { 502 if (nmi_watchdog == NMI_LOCAL_APIC) {