diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-23 18:00:56 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-23 18:00:56 +0300 |
commit | 322e929d196c27fa1bd50b389b800e9c30419bde (patch) | |
tree | b54c5ea2ca3e8566ec95044488e549b670607be9 /include | |
parent | 18451f9f9e5810b8bd1245c5ae166f257e0e2b9d (diff) | |
parent | c052bf82c6b00ca27aab0859addc4b3159dfd3a4 (diff) | |
download | linux-322e929d196c27fa1bd50b389b800e9c30419bde.tar.xz |
Merge back new material related to system-wide PM for v5.6.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/suspend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 6fc8843f1c9e..4a230c2f1c31 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h @@ -329,6 +329,7 @@ extern void arch_suspend_disable_irqs(void); extern void arch_suspend_enable_irqs(void); extern int pm_suspend(suspend_state_t state); +extern bool sync_on_suspend_enabled; #else /* !CONFIG_SUSPEND */ #define suspend_valid_only_mem NULL @@ -342,6 +343,7 @@ static inline bool pm_suspend_default_s2idle(void) { return false; } static inline void suspend_set_ops(const struct platform_suspend_ops *ops) {} static inline int pm_suspend(suspend_state_t state) { return -ENOSYS; } +static inline bool sync_on_suspend_enabled(void) { return true; } static inline bool idle_should_enter_s2idle(void) { return false; } static inline void __init pm_states_init(void) {} static inline void s2idle_set_ops(const struct platform_s2idle_ops *ops) {} |