powerpc: Only print PACATMSCRATCH in oops when TM is active
If TM is not active there is no need to print PACATMSCRATCH so we can save ourselves a line. Signed-off-by: Anton Blanchard <anton@samba.org> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
84b073868b
commit
6d888d1ab0
|
@ -871,6 +871,7 @@ void show_regs(struct pt_regs * regs)
|
||||||
printk("SOFTE: %ld ", regs->softe);
|
printk("SOFTE: %ld ", regs->softe);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
|
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
|
||||||
|
if (MSR_TM_ACTIVE(regs->msr))
|
||||||
printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch);
|
printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue