diff options
author | Magnus Damm <damm@opensource.se> | 2011-04-25 15:32:11 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-23 07:33:59 +0200 |
commit | 3593f5fe40a13badf6921ccbc3378b02fbf6a532 (patch) | |
tree | f2d8710c0e6abfb0f633935003bd532757a27f66 /COPYING | |
parent | dmaengine: shdma: synchronize RCU before freeing, simplify spinlock (diff) | |
download | linux-3593f5fe40a13badf6921ccbc3378b02fbf6a532.tar.xz linux-3593f5fe40a13badf6921ccbc3378b02fbf6a532.zip |
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 <damm@opensource.se>
Acked-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions