kernel/idle: Correct SMP_FALLBACK define

Corrected the define of SMP_FALLBACK to prevent llvm warning.

llvm issues a warning as the behaviour of using defined(x) inside a
macro expansion is undefined (https://reviews.llvm.org/D15866).

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
Jan Van Winkel 2019-09-27 22:52:08 +02:00 committed by Anas Nashif
commit 677050c2af

View file

@ -20,8 +20,11 @@
#endif
/* Fallback idle spin loop for SMP platforms without a working IPI */
#define SMP_FALLBACK \
(defined(CONFIG_SMP) && !defined(CONFIG_SCHED_IPI_SUPPORTED))
#if (defined(CONFIG_SMP) && !defined(CONFIG_SCHED_IPI_SUPPORTED))
#define SMP_FALLBACK 1
#else
#define SMP_FALLBACK 0
#endif
#ifdef CONFIG_SYS_POWER_MANAGEMENT
/*