linux-uconsole/drivers/clocksource
Aurelien Jarno cc760d4a88 clocksource: sh_tmu: compute mult and shift before registration
commit 66f49121ff upstream.

Since commit 98962465ed ("nohz: Prevent
clocksource wrapping during idle"), the CPU of an R2D board never goes
to idle. This commit assumes that mult and shift are assigned before
the clocksource is registered. As a consequence the safe maximum sleep
time is negative and the CPU never goes into idle.

This patch fixes the problem by moving mult and shift initialization
from sh_tmu_clocksource_enable() to sh_tmu_register_clocksource().

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-26 17:21:37 -07:00
..
acpi_pm.c time: move PIT_TICK_RATE to linux/timex.h 2009-06-16 19:47:27 -07:00
cyclone.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
Makefile clocksource: SuperH TMU Timer driver 2009-05-03 17:41:15 +09:00
scx200_hrt.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
sh_cmt.c clocksource: sh_cmt: compute mult and shift before registration 2010-07-05 11:11:02 -07:00
sh_mtu2.c clocksource: Fix up a registration/IRQ race in the sh drivers. 2010-03-15 08:49:44 -07:00
sh_tmu.c clocksource: sh_tmu: compute mult and shift before registration 2010-09-26 17:21:37 -07:00
tcb_clksrc.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00