]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/timer-ti-dm: Prepare for using cpuidle
authorTony Lindgren <tony@atomide.com>
Thu, 5 Mar 2020 08:27:11 +0000 (13:57 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Mar 2020 11:40:21 +0000 (12:40 +0100)
commit9b38084f8c81cbf0d60952bf5f034344624e11e6
treea0ea6dfc43e3228fe4d4e5ea50bf9e1a2982d778
parent93aa9e470e3c785902219018846a973c3e4bf620
clocksource/drivers/timer-ti-dm: Prepare for using cpuidle

Let's add runtime_suspend and resume functions and atomic enabled
flag. This way we can use these when converting to use cpuidle
for saving and restoring device context.

And we need to maintain the driver state in the driver as documented
in "9. Autosuspend, or automatically-delayed suspends" in the
Documentation/power/runtime_pm.rst document related to using driver
private lock and races with runtime_suspend().

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200305082715.15861-3-lokeshvutla@ti.com
drivers/clocksource/timer-ti-dm.c
include/clocksource/timer-ti-dm.h