summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-02-14 21:34:30 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-02-14 21:34:30 +0100
commit4e03e4e6d2a03a9f2edeefaec12d4f336dee824d (patch)
treedc400bdb64621c0a20252dc3c4bea54e8c30bde7 /kernel
parentMerge tag 'sound-5.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/ti... (diff)
parentMerge branch 'pm-cpufreq' (diff)
downloadlinux-4e03e4e6d2a03a9f2edeefaec12d4f336dee824d.tar.xz
linux-4e03e4e6d2a03a9f2edeefaec12d4f336dee824d.zip
Merge tag 'pm-5.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki: "Fix three issues related to the handling of wakeup events signaled through the ACPI SCI while suspended to idle (Rafael Wysocki) and unexport an internal cpufreq variable (Yangtao Li)" * tag 'pm-5.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system ACPICA: Introduce acpi_any_gpe_status_set() ACPI: PM: s2idle: Avoid possible race related to the EC GPE ACPI: EC: Fix flushing of pending work cpufreq: Make cpufreq_global_kobject static
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/suspend.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index 2c47280fbfc7..8b1bb5ee7e5d 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -131,11 +131,12 @@ static void s2idle_loop(void)
* to avoid them upfront.
*/
for (;;) {
- if (s2idle_ops && s2idle_ops->wake)
- s2idle_ops->wake();
-
- if (pm_wakeup_pending())
+ if (s2idle_ops && s2idle_ops->wake) {
+ if (s2idle_ops->wake())
+ break;
+ } else if (pm_wakeup_pending()) {
break;
+ }
pm_wakeup_clear(false);