Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb6e032b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 871c6683 ecec86e0
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();