Skip to content

Commit

Permalink
sparc64: Make touch_nmi_watchdog() actually work.
Browse files Browse the repository at this point in the history
It guards it's actions on nmi_watchdog_active, but nothing ever
sets that and it's initial value is zero.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 9, 2009
1 parent 4e85f59 commit d89be56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
* level 14 as our IRQ off level.
*/

static int nmi_watchdog_active;
static int panic_on_timeout;

/* nmi_active:
Expand All @@ -52,7 +51,7 @@ static DEFINE_PER_CPU(int, nmi_touch);

void touch_nmi_watchdog(void)
{
if (nmi_watchdog_active) {
if (atomic_read(&nmi_active)) {
int cpu;

for_each_present_cpu(cpu) {
Expand Down

0 comments on commit d89be56

Please sign in to comment.