Commit d1200d21 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

tests: Never disable SMP



Disabling SMP mode for certain tests was a one-release thing, done to
avoid having to triage every test independently (MANY are not
SMP-safe), and with the knowledge that it was probably hiding bugs in
the kernel.

Turn it on pervasively.  Tests are treated with a combination of
flagging specific cases as "1cpu" where we have short-running tests
that can be independently run in an otherwise SMP environment, and via
setting CONFIG_MP_NUM_CPUS=1 where that's not possible (which still
runs the full SMP kernel config, but with only one CPU available).

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent efc1ec03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,4 +4,4 @@ CONFIG_ASSERT_LEVEL=2
CONFIG_NUM_COOP_PRIORITIES=29
CONFIG_NUM_PREEMPT_PRIORITIES=40
CONFIG_SCHED_SCALABLE=y
CONFIG_SMP=n
CONFIG_MP_NUM_CPUS=1
+1 −0
Original line number Diff line number Diff line
@@ -6,3 +6,4 @@ CONFIG_NUM_PREEMPT_PRIORITIES=40
CONFIG_SYS_POWER_MANAGEMENT=y
CONFIG_TICKLESS_KERNEL=y

CONFIG_MP_NUM_CPUS=1
+0 −1
Original line number Diff line number Diff line
@@ -10,4 +10,3 @@ CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_THREAD_CUSTOM_DATA=y
CONFIG_SMP=n
+0 −2
Original line number Diff line number Diff line
@@ -9,8 +9,6 @@ CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_POLL=y
CONFIG_SCHED_SCALABLE=y
CONFIG_SMP=n
CONFIG_QEMU_TICKLESS_WORKAROUND=y

# The Zephyr CMSIS v2 emulation assumes that ticks are ms, currently
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_FORCE_NO_ASSERT=y
CONFIG_TEST_HW_STACK_PROTECTION=n
CONFIG_SMP=n
CONFIG_MP_NUM_CPUS=1
Loading