diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2010-05-31 17:45:48 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-06-02 04:02:35 -0400 |
commit | 66f49121ffa41a19c59965b31b046d8368fec3c7 (patch) | |
tree | cb3897ae04561c13f661c6dd8542be6a34b8d477 /drivers/clocksource/sh_cmt.c | |
parent | 019e2574f965b800ba76f319d817eae9405ae064 (diff) |
clocksource: sh_tmu: compute mult and shift before registration
Since commit 98962465ed9e6ea99c38e0af63fe1dcb5a79dc25 ("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>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/clocksource/sh_cmt.c')
0 files changed, 0 insertions, 0 deletions