686b9fff5e
There was some code to demonstrate the cpu_mask API here, but it was asymmetric (only thread B was pinned) and assumed exactly two CPUs. Start both threads pinned to CPUs 0 and 1 from an external main, and predicate the pinning on there actually being more than one SMP CPU. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
5 lines
98 B
Plaintext
5 lines
98 B
Plaintext
CONFIG_STDOUT_CONSOLE=y
|
|
# enable to use thread names
|
|
CONFIG_THREAD_NAME=y
|
|
CONFIG_SCHED_CPU_MASK=y
|