diff options
author | Anton Blanchard <anton@samba.org> | 2013-11-17 21:19:17 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-11-20 18:33:40 -0500 |
commit | 6d888d1ab0000dff8ea2901bcdf5d213f2a54e8b (patch) | |
tree | 5bd05b9672587e5b1201dabdde4547d68b5747ff /arch/powerpc | |
parent | 84b073868b9d9e754ae48b828337633d1b386482 (diff) |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 373980ae52ad..6cd50ac12219 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -871,7 +871,8 @@ void show_regs(struct pt_regs * regs) | |||
871 | printk("SOFTE: %ld ", regs->softe); | 871 | printk("SOFTE: %ld ", regs->softe); |
872 | #endif | 872 | #endif |
873 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM | 873 | #ifdef CONFIG_PPC_TRANSACTIONAL_MEM |
874 | printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch); | 874 | if (MSR_TM_ACTIVE(regs->msr)) |
875 | printk("\nPACATMSCRATCH: %016llx ", get_paca()->tm_scratch); | ||
875 | #endif | 876 | #endif |
876 | 877 | ||
877 | for (i = 0; i < 32; i++) { | 878 | for (i = 0; i < 32; i++) { |