Merge "smp: Wake up all idle CPUs when suspending to idle"

This commit is contained in:
qctecmdr 2020-01-30 16:12:58 -08:00 • committed by Gerrit - the friendly Code Review server
commit fb6e032b48

View file

@ -20,6 +20,7 @@
#include <linux/sched.h>
#include <linux/sched/idle.h>
#include <linux/hypervisor.h>
#include <linux/suspend.h>
#include "smpboot.h"
@ -791,8 +792,8 @@ void wake_up_all_idle_cpus(void)
for_each_online_cpu(cpu) {
if (cpu == smp_processor_id())
continue;
if (!cpu_isolated(cpu))
if (s2idle_state == S2IDLE_STATE_ENTER ||
!cpu_isolated(cpu))
wake_up_if_idle(cpu);
}
preempt_enable();