|
@@ -23,6 +23,14 @@
|
|
usage_count */
|
|
usage_count */
|
|
#define RPM_AUTO 0x08 /* Use autosuspend_delay */
|
|
#define RPM_AUTO 0x08 /* Use autosuspend_delay */
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PM
|
|
|
|
+extern int pm_generic_runtime_suspend(struct device *dev);
|
|
|
|
+extern int pm_generic_runtime_resume(struct device *dev);
|
|
|
|
+#else
|
|
|
|
+static inline int pm_generic_runtime_suspend(struct device *dev) { return 0; }
|
|
|
|
+static inline int pm_generic_runtime_resume(struct device *dev) { return 0; }
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifdef CONFIG_PM_RUNTIME
|
|
#ifdef CONFIG_PM_RUNTIME
|
|
|
|
|
|
extern struct workqueue_struct *pm_wq;
|
|
extern struct workqueue_struct *pm_wq;
|
|
@@ -37,8 +45,6 @@ extern void pm_runtime_enable(struct device *dev);
|
|
extern void __pm_runtime_disable(struct device *dev, bool check_resume);
|
|
extern void __pm_runtime_disable(struct device *dev, bool check_resume);
|
|
extern void pm_runtime_allow(struct device *dev);
|
|
extern void pm_runtime_allow(struct device *dev);
|
|
extern void pm_runtime_forbid(struct device *dev);
|
|
extern void pm_runtime_forbid(struct device *dev);
|
|
-extern int pm_generic_runtime_suspend(struct device *dev);
|
|
|
|
-extern int pm_generic_runtime_resume(struct device *dev);
|
|
|
|
extern void pm_runtime_no_callbacks(struct device *dev);
|
|
extern void pm_runtime_no_callbacks(struct device *dev);
|
|
extern void pm_runtime_irq_safe(struct device *dev);
|
|
extern void pm_runtime_irq_safe(struct device *dev);
|
|
extern void __pm_runtime_use_autosuspend(struct device *dev, bool use);
|
|
extern void __pm_runtime_use_autosuspend(struct device *dev, bool use);
|
|
@@ -142,8 +148,6 @@ static inline bool pm_runtime_active(struct device *dev) { return true; }
|
|
static inline bool pm_runtime_status_suspended(struct device *dev) { return false; }
|
|
static inline bool pm_runtime_status_suspended(struct device *dev) { return false; }
|
|
static inline bool pm_runtime_enabled(struct device *dev) { return false; }
|
|
static inline bool pm_runtime_enabled(struct device *dev) { return false; }
|
|
|
|
|
|
-static inline int pm_generic_runtime_suspend(struct device *dev) { return 0; }
|
|
|
|
-static inline int pm_generic_runtime_resume(struct device *dev) { return 0; }
|
|
|
|
static inline void pm_runtime_no_callbacks(struct device *dev) {}
|
|
static inline void pm_runtime_no_callbacks(struct device *dev) {}
|
|
static inline void pm_runtime_irq_safe(struct device *dev) {}
|
|
static inline void pm_runtime_irq_safe(struct device *dev) {}
|
|
|
|
|