From: Aurelien Jarno Date: Mon, 31 May 2010 21:45:48 +0000 (+0000) Subject: clocksource: sh_tmu: compute mult and shift before registration X-Git-Tag: v2.6.35-rc2~9^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66f49121ffa41a19c59965b31b046d8368fec3c7;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Paul Mundt --- Reading git-diff-tree failed