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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user