diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-02-14 12:34:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-02-14 12:34:30 -0800 |
commit | 4e03e4e6d2a03a9f2edeefaec12d4f336dee824d (patch) | |
tree | dc400bdb64621c0a20252dc3c4bea54e8c30bde7 /kernel/power | |
parent | 81f3011cbf501fef3a954821dbc362084f6b686b (diff) | |
parent | 3629ac5b92535793ba6226e243c2324a20c35fae (diff) | |
download | linux-4e03e4e6d2a03a9f2edeefaec12d4f336dee824d.tar.gz linux-4e03e4e6d2a03a9f2edeefaec12d4f336dee824d.tar.bz2 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/power')
-rw-r--r-- | kernel/power/suspend.c | 9 |
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); |