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:
parent
2f4c1ea362
commit
677050c2af
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue