|
@@ -82,6 +82,11 @@ static inline bool pm_runtime_suspended(struct device *dev)
|
|
|
&& !dev->power.disable_depth;
|
|
|
}
|
|
|
|
|
|
+static inline bool pm_runtime_enabled(struct device *dev)
|
|
|
+{
|
|
|
+ return !dev->power.disable_depth;
|
|
|
+}
|
|
|
+
|
|
|
static inline void pm_runtime_mark_last_busy(struct device *dev)
|
|
|
{
|
|
|
ACCESS_ONCE(dev->power.last_busy) = jiffies;
|
|
@@ -120,6 +125,7 @@ static inline void pm_runtime_put_noidle(struct device *dev) {}
|
|
|
static inline bool device_run_wake(struct device *dev) { return false; }
|
|
|
static inline void device_set_run_wake(struct device *dev, bool enable) {}
|
|
|
static inline bool pm_runtime_suspended(struct device *dev) { return false; }
|
|
|
+static inline bool pm_runtime_enabled(struct device *dev) { return false; }
|
|
|
|
|
|
static inline int pm_generic_runtime_idle(struct device *dev) { return 0; }
|
|
|
static inline int pm_generic_runtime_suspend(struct device *dev) { return 0; }
|