diff options
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/hpwdt.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c index 3d77116e4634..dea7b5bf6e2c 100644 --- a/drivers/watchdog/hpwdt.c +++ b/drivers/watchdog/hpwdt.c | |||
@@ -642,19 +642,14 @@ static struct notifier_block die_notifier = { | |||
642 | */ | 642 | */ |
643 | 643 | ||
644 | #ifdef CONFIG_HPWDT_NMI_DECODING | 644 | #ifdef CONFIG_HPWDT_NMI_DECODING |
645 | #ifdef ARCH_HAS_NMI_WATCHDOG | 645 | #ifdef CONFIG_X86_LOCAL_APIC |
646 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | 646 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) |
647 | { | 647 | { |
648 | /* | 648 | /* |
649 | * If nmi_watchdog is turned off then we can turn on | 649 | * If nmi_watchdog is turned off then we can turn on |
650 | * our nmi decoding capability. | 650 | * our nmi decoding capability. |
651 | */ | 651 | */ |
652 | if (!nmi_watchdog_active()) | 652 | hpwdt_nmi_decoding = 1; |
653 | hpwdt_nmi_decoding = 1; | ||
654 | else | ||
655 | dev_warn(&dev->dev, "NMI decoding is disabled. To enable this " | ||
656 | "functionality you must reboot with nmi_watchdog=0 " | ||
657 | "and load the hpwdt driver with priority=1.\n"); | ||
658 | } | 653 | } |
659 | #else | 654 | #else |
660 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | 655 | static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) |
@@ -662,7 +657,7 @@ static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev) | |||
662 | dev_warn(&dev->dev, "NMI decoding is disabled. " | 657 | dev_warn(&dev->dev, "NMI decoding is disabled. " |
663 | "Your kernel does not support a NMI Watchdog.\n"); | 658 | "Your kernel does not support a NMI Watchdog.\n"); |
664 | } | 659 | } |
665 | #endif /* ARCH_HAS_NMI_WATCHDOG */ | 660 | #endif /* CONFIG_X86_LOCAL_APIC */ |
666 | 661 | ||
667 | static int __devinit hpwdt_init_nmi_decoding(struct pci_dev *dev) | 662 | static int __devinit hpwdt_init_nmi_decoding(struct pci_dev *dev) |
668 | { | 663 | { |