diff options
author | David S. Miller <davem@davemloft.net> | 2009-09-09 08:29:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-09 08:29:16 +0200 |
commit | d89be56b2153ccad7e8cd9e71b5d8b686632e8c2 (patch) | |
tree | 2b1a0a14e1c336c6eb0bf3b04de86843f1e989b7 /arch/sparc | |
parent | sparc64: Kill unnecessary cast in profile_timer_exceptions_notify(). (diff) | |
download | linux-d89be56b2153ccad7e8cd9e71b5d8b686632e8c2.tar.xz linux-d89be56b2153ccad7e8cd9e71b5d8b686632e8c2.zip |
sparc64: Make touch_nmi_watchdog() actually work.
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/nmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/nmi.c b/arch/sparc/kernel/nmi.c index d1614e8384ae..47a465fe3c38 100644 --- a/arch/sparc/kernel/nmi.c +++ b/arch/sparc/kernel/nmi.c @@ -31,7 +31,6 @@ * level 14 as our IRQ off level. */ -static int nmi_watchdog_active; static int panic_on_timeout; /* nmi_active: @@ -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) { |