diff options
Diffstat (limited to 'include/linux/pm_runtime.h')
-rw-r--r-- | include/linux/pm_runtime.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index d19f1cca7f74..e9cc049ccb62 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h | |||
@@ -40,6 +40,7 @@ extern int pm_generic_runtime_idle(struct device *dev); | |||
40 | extern int pm_generic_runtime_suspend(struct device *dev); | 40 | extern int pm_generic_runtime_suspend(struct device *dev); |
41 | extern int pm_generic_runtime_resume(struct device *dev); | 41 | extern int pm_generic_runtime_resume(struct device *dev); |
42 | extern void pm_runtime_no_callbacks(struct device *dev); | 42 | extern void pm_runtime_no_callbacks(struct device *dev); |
43 | extern void pm_runtime_irq_safe(struct device *dev); | ||
43 | extern void __pm_runtime_use_autosuspend(struct device *dev, bool use); | 44 | extern void __pm_runtime_use_autosuspend(struct device *dev, bool use); |
44 | extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); | 45 | extern void pm_runtime_set_autosuspend_delay(struct device *dev, int delay); |
45 | extern unsigned long pm_runtime_autosuspend_expiration(struct device *dev); | 46 | extern unsigned long pm_runtime_autosuspend_expiration(struct device *dev); |
@@ -124,6 +125,7 @@ static inline int pm_generic_runtime_idle(struct device *dev) { return 0; } | |||
124 | static inline int pm_generic_runtime_suspend(struct device *dev) { return 0; } | 125 | static inline int pm_generic_runtime_suspend(struct device *dev) { return 0; } |
125 | static inline int pm_generic_runtime_resume(struct device *dev) { return 0; } | 126 | static inline int pm_generic_runtime_resume(struct device *dev) { return 0; } |
126 | static inline void pm_runtime_no_callbacks(struct device *dev) {} | 127 | static inline void pm_runtime_no_callbacks(struct device *dev) {} |
128 | static inline void pm_runtime_irq_safe(struct device *dev) {} | ||
127 | 129 | ||
128 | static inline void pm_runtime_mark_last_busy(struct device *dev) {} | 130 | static inline void pm_runtime_mark_last_busy(struct device *dev) {} |
129 | static inline void __pm_runtime_use_autosuspend(struct device *dev, | 131 | static inline void __pm_runtime_use_autosuspend(struct device *dev, |
@@ -196,6 +198,11 @@ static inline int pm_runtime_put_sync(struct device *dev) | |||
196 | return __pm_runtime_idle(dev, RPM_GET_PUT); | 198 | return __pm_runtime_idle(dev, RPM_GET_PUT); |
197 | } | 199 | } |
198 | 200 | ||
201 | static inline int pm_runtime_put_sync_suspend(struct device *dev) | ||
202 | { | ||
203 | return __pm_runtime_suspend(dev, RPM_GET_PUT); | ||
204 | } | ||
205 | |||
199 | static inline int pm_runtime_put_sync_autosuspend(struct device *dev) | 206 | static inline int pm_runtime_put_sync_autosuspend(struct device *dev) |
200 | { | 207 | { |
201 | return __pm_runtime_suspend(dev, RPM_GET_PUT | RPM_AUTO); | 208 | return __pm_runtime_suspend(dev, RPM_GET_PUT | RPM_AUTO); |