From dd33a8152a36db9e624859a08ae5eb1676274b78 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Wed, 31 Jan 2024 00:35:10 -0500 Subject: [PATCH] samples: philosophers: remove redundant items in prj.conf The normal and posix philosophers samples seemed to have a number of redundant choices in prj.conf. Let's reduce to the minimum required for the sample. The CONFIG_DEBUG_THREAD_INFO option is part of the documentation, so leave it as-is. Signed-off-by: Christopher Friedt --- samples/philosophers/prj.conf | 5 ----- samples/posix/philosophers/prj.conf | 14 +------------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/samples/philosophers/prj.conf b/samples/philosophers/prj.conf index 8db50d1152..05e25c210d 100644 --- a/samples/philosophers/prj.conf +++ b/samples/philosophers/prj.conf @@ -1,9 +1,4 @@ CONFIG_STDOUT_CONSOLE=n -CONFIG_ASSERT=y -CONFIG_ASSERT_LEVEL=2 -CONFIG_NUM_COOP_PRIORITIES=29 -CONFIG_NUM_PREEMPT_PRIORITIES=40 -CONFIG_SCHED_SCALABLE=y CONFIG_MP_MAX_NUM_CPUS=1 #Enable thread awareness for debugging tools supporting it diff --git a/samples/posix/philosophers/prj.conf b/samples/posix/philosophers/prj.conf index ccee021cdf..0934325aea 100644 --- a/samples/posix/philosophers/prj.conf +++ b/samples/posix/philosophers/prj.conf @@ -1,25 +1,13 @@ CONFIG_STDOUT_CONSOLE=n -CONFIG_ASSERT=y -CONFIG_ASSERT_LEVEL=2 -CONFIG_NUM_COOP_PRIORITIES=29 -CONFIG_NUM_PREEMPT_PRIORITIES=40 -CONFIG_SCHED_SCALABLE=y CONFIG_MP_MAX_NUM_CPUS=1 -CONFIG_LOG=y -CONFIG_LOG_MODE_MINIMAL=y - CONFIG_POSIX_API=y CONFIG_THREAD_STACK_INFO=y CONFIG_DYNAMIC_THREAD=y CONFIG_DYNAMIC_THREAD_POOL_SIZE=6 CONFIG_MAX_PTHREAD_COUNT=6 -CONFIG_MAX_PTHREAD_MUTEX_COUNT=7 +CONFIG_MAX_PTHREAD_MUTEX_COUNT=6 #Enable thread awareness for debugging tools supporting it CONFIG_DEBUG_THREAD_INFO=y - -# CONFIG_SAMPLE_ERROR_CHECKING=y -# CONFIG_PTHREAD_MUTEX_LOG_LEVEL_DBG=y -# CONFIG_PTHREAD_LOG_LEVEL_DBG=y