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>
This commit is contained in:
Michael Ellerman 2017-10-12 15:44:34 +11:00
parent 3ba45b7e46
commit 0bc0091401
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ void soft_nmi_interrupt(struct pt_regs *regs)
} }
set_cpu_stuck(cpu, tb); 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_modules();
print_irqtrace_events(current); print_irqtrace_events(current);
show_regs(regs); show_regs(regs);