Skip to content

Commit

Permalink
powerpc: Only print PACATMSCRATCH in oops when TM is active
Browse files Browse the repository at this point in the history
If TM is not active there is no need to print PACATMSCRATCH
so we can save ourselves a line.

Signed-off-by: Anton Blanchard <[email protected]>
Acked-by: Michael Neuling <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
antonblanchard authored and ozbenh committed Nov 20, 2013
1 parent 84b0738 commit 6d888d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ void show_regs(struct pt_regs * regs)
printk("SOFTE: %ld ", regs->softe);
#endif
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch);
if (MSR_TM_ACTIVE(regs->msr))
printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch);
#endif

for (i = 0; i < 32; i++) {
Expand Down

0 comments on commit 6d888d1

Please sign in to comment.