smp: move a preprocessor conditional from .c to cmake

smp.c only has to be built if CONFIG_SMP is enabled. Remove
preprocessor checks from the file itself and update cmake rules
instead.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-04-06 12:32:55 +02:00 committed by Anas Nashif
commit ced7866901
2 changed files with 6 additions and 4 deletions

View file

@ -27,10 +27,15 @@ list(APPEND kernel_files
stack.c
system_work_q.c
work.c
smp.c
sched.c
condvar.c
)
if(CONFIG_SMP)
list(APPEND kernel_files
smp.c)
endif()
endif()
if(CONFIG_XIP)