summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/watchdog.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-08-01 14:00:54 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-10 14:30:02 +0200
commit04019bf8ebb3c8cd66d75046054aeb264ba2db54 (patch)
tree0b2b6ecbbf1df42c09ef213e3fe3c7702ef04a87 /arch/powerpc/kernel/watchdog.c
parentpowerpc: Add irq accounting for system reset interrupts (diff)
downloadlinux-04019bf8ebb3c8cd66d75046054aeb264ba2db54.tar.xz
linux-04019bf8ebb3c8cd66d75046054aeb264ba2db54.zip
powerpc: Add irq accounting for watchdog interrupts
This adds an irq counter for the watchdog soft-NMI. This interrupt only fires when interrupts are soft-disabled, so it will not increment much even when the watchdog is running. However it's useful for debugging and sanity checking. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/watchdog.c')
-rw-r--r--arch/powerpc/kernel/watchdog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/watchdog.c b/arch/powerpc/kernel/watchdog.c
index b67f8b03a32d..4b9a567c9975 100644
--- a/arch/powerpc/kernel/watchdog.c
+++ b/arch/powerpc/kernel/watchdog.c
@@ -204,6 +204,9 @@ void soft_nmi_interrupt(struct pt_regs *regs)
return;
nmi_enter();
+
+ __this_cpu_inc(irq_stat.soft_nmi_irqs);
+
tb = get_tb();
if (tb - per_cpu(wd_timer_tb, cpu) >= wd_panic_timeout_tb) {
per_cpu(wd_timer_tb, cpu) = tb;