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@xxxxxxxxxx> --- backport/backport-include/linux/suspend.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 backport/backport-include/linux/suspend.h 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 */ -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe backports" in