diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-09-11 00:10:18 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-09-11 16:47:40 +0200 |
commit | f23dbda19bdd54d1badd6bfba97f75d45704f91c (patch) | |
tree | b56d53c024e748430ab36ca09938bc4ebc59c8f9 | |
parent | 777327780af2b4f870b8d04b0a072ebabe06cfae (diff) |
header: add pm_system_wakeup()
This function was added in kernel 3.18 in commit 068765ba7987e ("PM /
sleep: Mechanism for aborting system suspends unconditionally") In our
implementation we only call pm_system_wakeup(() and do not handle the
abortion of the current suspend process.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | backport/backport-include/linux/suspend.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backport/backport-include/linux/suspend.h b/backport/backport-include/linux/suspend.h new file mode 100644 index 00000000..394b164b --- /dev/null +++ b/backport/backport-include/linux/suspend.h @@ -0,0 +1,12 @@ +#ifndef __BP_LINUX_SUSPEND_H +#define __BP_LINUX_SUSPEND_H +#include_next <linux/suspend.h> + +#if LINUX_VERSION_IS_LESS(3,18,0) +static inline void pm_system_wakeup(void) +{ + freeze_wake(); +} +#endif + +#endif /* __BP_LINUX_SUSPEND_H */ |