Skip to content
Commit 3740f606 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

tests: mem_protect: use MP_NUM_CPUS instead of SMP



The test_mem_domain_migration test creates a new thread with
different priority based on whether SMP is enabled. This causes
an issue where SMP=y and MP_NUM_CPUS=1 where the spin_entry()
would spin forever (with k_busy_wait()) and not yielding since
it has cooperative priority. Fix this by using MP_NUM_CPUS to
figure out which priority to use, as it is valid configuration
to have SMP=y and MP_NUM_CPUS=1.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 95712bd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment