Skip to content

Commit 82bc7d0

Browse files
Andy Rossnashif
authored andcommitted
tests/lib/ringbuffer: Run with one CPU
The stress ('scuse me, "zstress") cases here are all written to exercise reader/writer threads at different priority combinations. That's defeated if the threads are allowed to run on different CPUs (because being "low" priority doesn't matter if you have a spare CPU to run on). There is also extensive use of stack buffers to pass data through the ring buffer zero copy implementation, which runs afoul of the KERNEL_COHERENCE rules on intel_adsp platforms (where stack memory is incoherent between CPUs and can't be shared like that). Fix both issues by just setting CONFIG_MP_NUM_CPUS=1 Signed-off-by: Andy Ross <[email protected]>
1 parent dbff586 commit 82bc7d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/lib/ringbuffer/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ CONFIG_RING_BUFFER=y
66
CONFIG_TEST_RANDOM_GENERATOR=y
77
CONFIG_ENTROPY_GENERATOR=y
88
CONFIG_XOSHIRO_RANDOM_GENERATOR=y
9+
CONFIG_MP_NUM_CPUS=1

0 commit comments

Comments
 (0)