From: Scott Ashcroft Date: Fri, 6 Oct 2006 15:54:54 +0000 (+0100) Subject: [MIPS] Cobalt: Time runs too quickly X-Git-Tag: v2.6.19-rc2~272 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=5c90d528b21cb9506713f92730f33246b80ecc25;p=safe%2Fjmp%2Flinux-2.6 [MIPS] Cobalt: Time runs too quickly A kernel built with HZ==250 runs about 4 four times too quickly on a Cobalt RaQ2. Signed-off-by: Scott Ashcroft Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/cobalt/setup.c b/arch/mips/cobalt/setup.c index 0b347cf..bf9dc72 100644 --- a/arch/mips/cobalt/setup.c +++ b/arch/mips/cobalt/setup.c @@ -50,8 +50,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);