From: Magnus Damm Date: Mon, 25 Apr 2011 13:32:11 +0000 (+0900) Subject: clocksource: sh_cmt: __clocksource_updatefreq_hz() update X-Git-Tag: v3.0-rc1~320^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3593f5fe40a13badf6921ccbc3378b02fbf6a532;p=pandora-kernel.git clocksource: sh_cmt: __clocksource_updatefreq_hz() update This patch updates the clocksource part of the CMT driver to make use of the __clocksource_updatefreq_hz() function. Without this patch the old code uses clocksource_register() together with a hack that assumes a never changing clock rate (see clk_enable(), clk_get_rate() and clk_disable()). The patch uses clocksource_register_hz() with 1 Hz as initial value, then lets the ->enable() callback update the value with __clocksource_updatefreq_hz() once the struct clk has been enabled and the frequency is stable. Signed-off-by: Magnus Damm Acked-by: John Stultz Signed-off-by: Paul Mundt --- Reading git-diff-tree failed