powerpc/watchdog: Print the NIP in soft_nmi_interrupt()
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 12 Oct 2017 04:44:34 +0000 (15:44 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 28 Jan 2018 06:08:29 +0000 (17:08 +1100)
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>
arch/powerpc/kernel/watchdog.c

index 80a467e..6256dc3 100644 (file)
@@ -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);