diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-24 21:20:27 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-02-24 21:20:27 +0100 |
| commit | 656f72bb2ef33cd832a0f8e80893cce09f3d43df (patch) | |
| tree | 9770613baf50a704d50d3221c057b37ed0fc8730 /include/linux/device.h | |
| parent | 74fb44863084275b952f21ec6a024af0e2e75cb8 (diff) | |
| parent | 85945c28b5a888043cb2b54f880d80d8915f21f5 (diff) | |
Merge back earlier PM core material for v5.1.
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 6cb4640b6160..53028636fe39 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1165,6 +1165,16 @@ static inline bool device_async_suspend_enabled(struct device *dev) return !!dev->power.async_suspend; } +static inline bool device_pm_not_required(struct device *dev) +{ + return dev->power.no_pm; +} + +static inline void device_set_pm_not_required(struct device *dev) +{ + dev->power.no_pm = true; +} + static inline void dev_pm_syscore_device(struct device *dev, bool val) { #ifdef CONFIG_PM_SLEEP |
