ANDROID: smp: fix preprocessor conditional warning

This fixes the following warning:
kernel/smp.c: In function ‘wake_up_all_idle_cpus’:
kernel/smp.c:961:5: warning: "CONFIG_SUSPEND" is not defined, evaluates to 0 [-Wundef]
 #if CONFIG_SUSPEND
     ^~~~~~~~~~~~~~

Bug: 183339614
Fixes: fc005b3ced (ANDROID: fix 0-day build-break for non-GKI)
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
Change-Id: Ieeff7c0a49237e117e93e653b8f1a3e2d63f3f65
This commit is contained in:
Carlos Llamas
2021-04-14 15:38:21 +00:00
parent f226790096
commit 2feb4789b7

View File

@@ -958,7 +958,7 @@ void wake_up_all_idle_cpus(void)
if (cpu == smp_processor_id())
continue;
#if CONFIG_SUSPEND
#if IS_ENABLED(CONFIG_SUSPEND)
if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
#endif
wake_up_if_idle(cpu);