Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209322
b: refs/heads/master
c: 34572b2
h: refs/heads/master
v: v3
  • Loading branch information
dann frazier authored and Wim Van Sebroeck committed Aug 13, 2010
1 parent 1bbfff6 commit 7d83734
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 243066bad7e4ff5072b4e67063c4298d5bbba9cd
refs/heads/master: 34572b29dd1db23a36f9cc46abf1c9acf85f8cfe
20 changes: 10 additions & 10 deletions trunk/drivers/watchdog/hpwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct cmn_registers {
u32 reflags;
} __attribute__((packed));

static unsigned int hpwdt_nmi_sourcing;
static unsigned int hpwdt_nmi_decoding;
static unsigned int allow_kdump;
static unsigned int priority; /* hpwdt at end of die_notify list */
static DEFINE_SPINLOCK(rom_lock);
Expand Down Expand Up @@ -467,7 +467,7 @@ static int hpwdt_pretimeout(struct notifier_block *nb, unsigned long ulReason,
if (ulReason != DIE_NMI && ulReason != DIE_NMI_IPI)
goto out;

if (!hpwdt_nmi_sourcing)
if (!hpwdt_nmi_decoding)
goto out;

spin_lock_irqsave(&rom_lock, rom_pl);
Expand Down Expand Up @@ -634,23 +634,23 @@ static struct notifier_block die_notifier = {
*/

#ifdef ARCH_HAS_NMI_WATCHDOG
static void __devinit hpwdt_check_nmi_sourcing(struct pci_dev *dev)
static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev)
{
/*
* If nmi_watchdog is turned off then we can turn on
* our nmi sourcing capability.
* our nmi decoding capability.
*/
if (!nmi_watchdog_active())
hpwdt_nmi_sourcing = 1;
hpwdt_nmi_decoding = 1;
else
dev_warn(&dev->dev, "NMI sourcing is disabled. To enable this "
dev_warn(&dev->dev, "NMI decoding is disabled. To enable this "
"functionality you must reboot with nmi_watchdog=0 "
"and load the hpwdt driver with priority=1.\n");
}
#else
static void __devinit hpwdt_check_nmi_sourcing(struct pci_dev *dev)
static void __devinit hpwdt_check_nmi_decoding(struct pci_dev *dev)
{
dev_warn(&dev->dev, "NMI sourcing is disabled. "
dev_warn(&dev->dev, "NMI decoding is disabled. "
"Your kernel does not support a NMI Watchdog.\n");
}
#endif
Expand All @@ -661,9 +661,9 @@ static int __devinit hpwdt_init_one(struct pci_dev *dev,
int retval;

/*
* Check if we can do NMI sourcing or not
* Check if we can do NMI decoding or not
*/
hpwdt_check_nmi_sourcing(dev);
hpwdt_check_nmi_decoding(dev);

/*
* First let's find out if we are on an iLO2+ server. We will
Expand Down

0 comments on commit 7d83734

Please sign in to comment.