From 2218e80bc2d3a98a0f2c3e525eebc36d73fa779a Mon Sep 17 00:00:00 2001 From: Jaxson Han Date: Mon, 21 Aug 2023 11:38:15 +0800 Subject: [PATCH] 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 --- samples/posix/uname/prj.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/posix/uname/prj.conf b/samples/posix/uname/prj.conf index 47e3b82e5ce..7b1dfc80964 100644 --- a/samples/posix/uname/prj.conf +++ b/samples/posix/uname/prj.conf @@ -1,3 +1,4 @@ CONFIG_POSIX_API=y CONFIG_SHELL=y CONFIG_SHELL_GETOPT=y +CONFIG_MP_MAX_NUM_CPUS=1