summaryrefslogtreecommitdiff
path: root/include/clocksource
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2020-03-05 11:27:11 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-03-16 14:40:21 +0300
commit5e20931c6a750b4b1ea9a2f7b863cc2dd9222ead (patch)
treea0ea6dfc43e3228fe4d4e5ea50bf9e1a2982d778 /include/clocksource
parent341e8cba6c32bb7509eabb91619a233b7ae249b9 (diff)
downloadlinux-5e20931c6a750b4b1ea9a2f7b863cc2dd9222ead.tar.xz
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
Diffstat (limited to 'include/clocksource')
-rw-r--r--include/clocksource/timer-ti-dm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h
index 7d9598dc578d..eef5de300731 100644
--- a/include/clocksource/timer-ti-dm.h
+++ b/include/clocksource/timer-ti-dm.h
@@ -105,6 +105,7 @@ struct omap_dm_timer {
void __iomem *pend; /* write pending */
void __iomem *func_base; /* function register base */
+ atomic_t enabled;
unsigned long rate;
unsigned reserved:1;
unsigned posted:1;