]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/clocksource/timer-ti-dm.c
ARM: OMAP: dmtimer: pm_runtime support
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Tue, 20 Sep 2011 11:30:21 +0000 (17:00 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 21 Sep 2011 22:50:31 +0000 (15:50 -0700)
commitffe07ceae1ae4b00b776c59694eddd9dd615dcea
treeea5192202119ce30d24b6dbc06ab734ca41fe98f
parent3392cdd33a0419e3226910a08b8bdc43b56c95d0
ARM: OMAP: dmtimer: pm_runtime support

Add pm_runtime feature to dmtimer whereby *_runtime_get_sync()
is called within omap_dm_timer_enable(), pm_runtime_put()
is called in omap_dm_timer_disable(). In addition to calling
pm_runtime_enable, we are calling pm_runtime_irq_safe so that
they can be called from interrupt context.

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Partha Basak <p-basak2@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Cousson, Benoit <b-cousson@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c
arch/arm/plat-omap/include/plat/dmtimer.h