header: add pm_system_wakeup()
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 10 Sep 2017 22:10:18 +0000 (00:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2017 14:47:40 +0000 (16:47 +0200)
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>
backport/backport-include/linux/suspend.h [new file with mode: 0644]

diff --git a/backport/backport-include/linux/suspend.h b/backport/backport-include/linux/suspend.h
new file mode 100644 (file)
index 0000000..394b164
--- /dev/null
@@ -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 */