All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Time runs too quickly on Cobalt
@ 2006-10-06 15:54 Scott Ashcroft
  2006-10-07 23:32 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Ashcroft @ 2006-10-06 15:54 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

If I build a kernel with HZ==250 then time runs about 4 four times too 
quickly on my Cobalt RaQ2.

The following patch seems to fix it but I'm not sure this is the correct 
thing to do.

Signed-off-by: Scott Ashcroft <scott.ashcroft@talk21.com>


[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 551 bytes --]

diff --git a/arch/mips/cobalt/setup.c b/arch/mips/cobalt/setup.c
index c01a017..f7c6eb2 100644
--- a/arch/mips/cobalt/setup.c
+++ b/arch/mips/cobalt/setup.c
@@ -51,8 +51,8 @@ const char *get_system_type(void)
 
 void __init plat_timer_setup(struct irqaction *irq)
 {
-	/* Load timer value for 1KHz (TCLK is 50MHz) */
-	GALILEO_OUTL(50*1000*1000 / 1000, GT_TC0_OFS);
+	/* Load timer value for HZ (TCLK is 50MHz) */
+	GALILEO_OUTL(50*1000*1000 / HZ, GT_TC0_OFS);
 
 	/* Enable timer */
 	GALILEO_OUTL(GALILEO_ENTC0 | GALILEO_SELTC0, GT_TC_CONTROL_OFS);

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

* Re: [PATCH] Time runs too quickly on Cobalt
  2006-10-06 15:54 [PATCH] Time runs too quickly on Cobalt Scott Ashcroft
@ 2006-10-07 23:32 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2006-10-07 23:32 UTC (permalink / raw)
  To: Scott Ashcroft; +Cc: linux-mips

On Fri, Oct 06, 2006 at 04:54:54PM +0100, Scott Ashcroft wrote:

> If I build a kernel with HZ==250 then time runs about 4 four times too 
> quickly on my Cobalt RaQ2.
> 
> The following patch seems to fix it but I'm not sure this is the correct 
> thing to do.

Looks right to me.

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

end of thread, other threads:[~2006-10-07 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 15:54 [PATCH] Time runs too quickly on Cobalt Scott Ashcroft
2006-10-07 23:32 ` Ralf Baechle

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.