All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc/time: When starting the decrementer don't zero the other bits in TCR
@ 2011-08-25 12:19 Laurentiu Tudor
  2011-09-01  6:27 ` Kumar Gala
  0 siblings, 1 reply; 6+ messages in thread
From: Laurentiu Tudor @ 2011-08-25 12:19 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Laurentiu Tudor

Clearing the other TCR bits might break code that sets them (e.g. to setup
the watchdog or fixed interval timer) before start_cpu_decrementer() gets
called.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
---
 arch/powerpc/kernel/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 03b29a6..e8b5cdc 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -721,7 +721,7 @@ void start_cpu_decrementer(void)
 	mtspr(SPRN_TSR, TSR_ENW | TSR_WIS | TSR_DIS | TSR_FIS);
 
 	/* Enable decrementer interrupt */
-	mtspr(SPRN_TCR, TCR_DIE);
+	mtspr(SPRN_TCR, mfspr(SPRN_TCR) | TCR_DIE);
 #endif /* defined(CONFIG_BOOKE) || defined(CONFIG_40x) */
 }
 
-- 
1.7.1

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

end of thread, other threads:[~2011-09-01 18:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 12:19 [PATCH] powerpc/time: When starting the decrementer don't zero the other bits in TCR Laurentiu Tudor
2011-09-01  6:27 ` Kumar Gala
2011-09-01  8:31   ` Tudor Laurentiu
2011-09-01 13:56     ` Kumar Gala
2011-09-01 15:38       ` Tudor Laurentiu
2011-09-01 18:49         ` Kumar Gala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.