ANDROID: fix 0-day build-break for non-GKI
Code added for cpu pause feature should be conditional based on
CONFIG_SUSPEND
Fixes: 5ada76d056 ("ANDROID: sched/pause: prevent wake up paused cpus")
Bug: 161210528
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I8dc31064bafb31dd570daae97b7bb547384a771f
This commit is contained in:
parent
ba75b92fef
commit
fc005b3ced
1 changed files with 2 additions and 0 deletions
|
|
@ -954,7 +954,9 @@ void wake_up_all_idle_cpus(void)
|
|||
if (cpu == smp_processor_id())
|
||||
continue;
|
||||
|
||||
#if CONFIG_SUSPEND
|
||||
if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
|
||||
#endif
|
||||
wake_up_if_idle(cpu);
|
||||
}
|
||||
preempt_enable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue