summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-10-12 15:44:34 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-28 17:08:29 +1100
commit0bc00914010e3826a3d168d1c879f79800a11bae (patch)
tree397ce865170004e1de13f7967cf6bf5e282f682d
parent3ba45b7e46e2ae7c059f3335120aed5e2c749bd9 (diff)
downloadlinux-0-day-0bc00914010e3826a3d168d1c879f79800a11bae.tar.gz
linux-0-day-0bc00914010e3826a3d168d1c879f79800a11bae.tar.xz
powerpc/watchdog: Print the NIP in soft_nmi_interrupt()
When a CPU detects its locked up via soft_nmi_interrupt() we have pt_regs, so print the regs->nip, which points to where we took the soft-NMI. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/kernel/watchdog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/watchdog.c b/arch/powerpc/kernel/watchdog.c
index 80a467eb532af..6256dc3b0087d 100644
--- a/arch/powerpc/kernel/watchdog.c
+++ b/arch/powerpc/kernel/watchdog.c
@@ -254,7 +254,7 @@ void soft_nmi_interrupt(struct pt_regs *regs)
}
set_cpu_stuck(cpu, tb);
- pr_emerg("CPU %d self-detected hard LOCKUP\n", cpu);
+ pr_emerg("CPU %d self-detected hard LOCKUP @ %pS\n", cpu, (void *)regs->nip);
print_modules();
print_irqtrace_events(current);
show_regs(regs);