diff options
author | Magnus Damm <damm@opensource.se> | 2011-04-25 17:38:37 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-23 09:34:04 +0400 |
commit | 0aeac458d9ebea5f0dc483e2d3f2c06bfa520c02 (patch) | |
tree | 780670cb4250434930199a28eddcdcd266d83d96 /samples | |
parent | 01fa68b58492a5d6708a91c1f474b6a099a9509e (diff) | |
download | linux-0aeac458d9ebea5f0dc483e2d3f2c06bfa520c02.tar.xz |
clocksource: sh_tmu: __clocksource_updatefreq_hz() update
This patch updates the clocksource part of the TMU 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 'samples')
0 files changed, 0 insertions, 0 deletions