kconfig: Have the 'SMP' option depend on 'USE_SWITCH'

SMP requires the new-style '_arch_switch' to be enabled. To prevent
users from creating invalid configurations where SMP is enabled while
_arch_switch is not, we add a dependency from SMP to USE_SWITCH.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-12-27 18:08:24 +01:00 committed by Anas Nashif
commit 21d69579f5

View file

@ -662,6 +662,7 @@ config USE_SWITCH
config SMP config SMP
bool "Enable symmetric multithreading support" bool "Enable symmetric multithreading support"
depends on USE_SWITCH
help help
When true, kernel will be built with SMP support, allowing When true, kernel will be built with SMP support, allowing
more than one CPU to schedule Zephyr tasks at a time. more than one CPU to schedule Zephyr tasks at a time.