]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: hpwdt: prevent multiple "NMI occurred" messages
authorNaga Chumbalkar <nagananda.chumbalkar@hp.com>
Tue, 9 Aug 2011 22:27:26 +0000 (22:27 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 3 Feb 2012 18:36:32 +0000 (10:36 -0800)
On platforms with no iCRU support don't print two, (possibly conflicting),
"NMI occurred" messages when the firmware is unable to source the NMI.

Please note that one of the enhancements to the v1.3.0 hpwdt driver is to panic and allow
KDUMP to succeed even on NMIs that are unknown to the platform firmware.

Signed-off-by: Naga Chumbalkar <nagananda.chumbalkar@hp.com>
Reviewed-by: Thomas Mingarelli <thomas.mingarelli@hp.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Maxim Uvarov <maxim.uvarov@oracle.com>
drivers/watchdog/hpwdt.c

index 0ec5cd8238f2d546d02b27cca7da470d8016ef75..33b0d369e79d715a6044519dcf52fa4ee4e8f4d6 100644 (file)
@@ -497,15 +497,16 @@ static int hpwdt_pretimeout(struct notifier_block *nb, unsigned long ulReason,
                asminline_call(&cmn_regs, cru_rom_addr);
        die_nmi_called = 1;
        spin_unlock_irqrestore(&rom_lock, rom_pl);
+
+       if (allow_kdump)
+               hpwdt_stop();
+
        if (!is_icru) {
                if (cmn_regs.u1.ral == 0) {
-                       printk(KERN_WARNING "hpwdt: An NMI occurred, "
+                       panic("An NMI occurred, "
                                "but unable to determine source.\n");
                }
        }
-
-       if (allow_kdump)
-               hpwdt_stop();
        panic("An NMI occurred, please see the Integrated "
                "Management Log for details.\n");