linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Only print PACATMSCRATCH in oops when TM is active
@ 2013-11-18  2:19 Anton Blanchard
  2013-11-18  2:38 ` Michael Neuling
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Blanchard @ 2013-11-18  2:19 UTC (permalink / raw)
  To: benh, paulus, mikey; +Cc: linuxppc-dev


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>
---

Index: b/arch/powerpc/kernel/process.c
===================================================================
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -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++) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc: Only print PACATMSCRATCH in oops when TM is active
  2013-11-18  2:19 [PATCH] powerpc: Only print PACATMSCRATCH in oops when TM is active Anton Blanchard
@ 2013-11-18  2:38 ` Michael Neuling
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Neuling @ 2013-11-18  2:38 UTC (permalink / raw)
  To: Anton Blanchard; +Cc: paulus, linuxppc-dev

Anton Blanchard <anton@samba.org> wrote:

> 
> 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>

> ---
> 
> Index: b/arch/powerpc/kernel/process.c
> ===================================================================
> --- a/arch/powerpc/kernel/process.c
> +++ b/arch/powerpc/kernel/process.c
> @@ -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++) {
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-18  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-18  2:19 [PATCH] powerpc: Only print PACATMSCRATCH in oops when TM is active Anton Blanchard
2013-11-18  2:38 ` Michael Neuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).