android_kernel_samsung_msm8976/drivers/clocksource
Magnus Damm 0aeac458d9 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>
2011-05-23 14:34:04 +09:00
..
acpi_pm.c acpi_pm: Clear pmtmr_ioport if acpi_pm initialization fails 2011-01-21 17:38:19 +01:00
cs5535-clockevt.c Andres has moved 2010-07-20 16:25:41 -07:00
cyclone.c x86: Convert remaining x86 clocksources to clocksource_register_hz/khz 2011-02-21 13:33:33 -08:00
i8253.c clocksource: add common i8253 PIT clocksource 2011-05-14 10:29:47 +01:00
Kconfig clocksource: add common i8253 PIT clocksource 2011-05-14 10:29:47 +01:00
Makefile clocksource: add common i8253 PIT clocksource 2011-05-14 10:29:47 +01:00
scx200_hrt.c clocksource: pass clocksource to read() callback 2009-04-21 13:41:47 -07:00
sh_cmt.c clocksource: sh_cmt: Runtime PM support 2011-05-23 14:34:02 +09:00
sh_mtu2.c ARM: shmobile: remove sh_timer_config clk member 2010-10-31 10:40:39 -04:00
sh_tmu.c clocksource: sh_tmu: __clocksource_updatefreq_hz() update 2011-05-23 14:34:04 +09:00
tcb_clksrc.c drivers/clocksource/tcb_clksrc.c: fix init sequence 2011-01-26 10:50:04 +10:00