mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "smp: Wake up all idle CPUs when suspending to idle"
This commit is contained in:
commit
fb6e032b48
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue