summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2010-06-22 16:41:31 +0900
committerPaul Mundt <lethal@linux-sh.org>2010-06-22 16:41:31 +0900
commit5967d33ce8a030f01a716fc0b25fcb03744a5fda (patch)
tree3fe39b676361ccba4a0cd4a7bea7602c85ff1a64 /drivers/clocksource
parent0e6f989ba83e6fa64e979d3488f01670b8be7959 (diff)
downloadop-kernel-dev-5967d33ce8a030f01a716fc0b25fcb03744a5fda.zip
op-kernel-dev-5967d33ce8a030f01a716fc0b25fcb03744a5fda.tar.gz
clocksource: sh_cmt: Fix up bogus shift value.
The previous CMT fixup accidentally copied in the TMU shift value, reset this back to its original value while preserving the TMU fix. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/sh_cmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c
index f3d3898..717305d 100644
--- a/drivers/clocksource/sh_cmt.c
+++ b/drivers/clocksource/sh_cmt.c
@@ -449,7 +449,7 @@ static int sh_cmt_register_clocksource(struct sh_cmt_priv *p,
clk_disable(p->clk);
/* TODO: calculate good shift from rate and counter bit width */
- cs->shift = 10;
+ cs->shift = 0;
cs->mult = clocksource_hz2mult(p->rate, cs->shift);
dev_info(&p->pdev->dev, "used as clock source\n");
OpenPOWER on IntegriCloud