Skip to content

Commit 2218e80

Browse files
povergoingcarlescufi
authored andcommitted
samples: posix: uname: Set to 1cpu as shell_thread is not SMP-safe
The sample will leverage shell_thread function, which is not SMP-safe. This will cause issues on some SMP platform. Set CONFIG_MP_MAX_NUM_CPUS to 1 to fix the issue. Signed-off-by: Jaxson Han <[email protected]>
1 parent 13ec859 commit 2218e80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/posix/uname/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
CONFIG_POSIX_API=y
22
CONFIG_SHELL=y
33
CONFIG_SHELL_GETOPT=y
4+
CONFIG_MP_MAX_NUM_CPUS=1

0 commit comments

Comments
 (0)