Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c90d528 authored by Scott Ashcroft's avatar Scott Ashcroft Committed by Ralf Baechle
Browse files

[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: default avatarScott Ashcroft <scott.ashcroft@talk21.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 59d6ab86
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);