mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -958,7 +958,7 @@ void wake_up_all_idle_cpus(void)
|
|||||||
if (cpu == smp_processor_id())
|
if (cpu == smp_processor_id())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#if CONFIG_SUSPEND
|
#if IS_ENABLED(CONFIG_SUSPEND)
|
||||||
if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
|
if (s2idle_state == S2IDLE_STATE_ENTER || cpu_active(cpu))
|
||||||
#endif
|
#endif
|
||||||
wake_up_if_idle(cpu);
|
wake_up_if_idle(cpu);
|
||||||
|
|||||||
Reference in New Issue
Block a user