Skip to content

Commit 4d94257

Browse files
nordic-krchnashif
authored andcommitted
logging: Make logging thread priority fixed
Removed kconfig option for setting logging thread priority and fix it to K_LOWEST_APPLICATION_THREAD_PRIO. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent 5eed503 commit 4d94257

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

subsys/logging/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,6 @@ config LOG_PROCESS_THREAD_SLEEP_MS
240240
Log processing thread sleeps for requested period given in
241241
milliseconds. When waken up, thread process any buffered messages.
242242

243-
config LOG_PROCESS_THREAD_PRIO
244-
int "Priority of the log internal thread"
245-
default -2
246-
help
247-
Change with care since log processing can be time consuming thus it
248-
should be on low priority.
249-
250243
config LOG_PROCESS_THREAD_STACK_SIZE
251244
int "Stack size for the internal log processing thread"
252245
default 768

subsys/logging/log_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ static int enable_logger(struct device *arg)
609609
k_thread_create(&logging_thread, logging_stack,
610610
K_THREAD_STACK_SIZEOF(logging_stack),
611611
log_process_thread_func, NULL, NULL, NULL,
612-
CONFIG_LOG_PROCESS_THREAD_PRIO, 0, K_NO_WAIT);
612+
K_LOWEST_APPLICATION_THREAD_PRIO, 0, K_NO_WAIT);
613613
k_thread_name_set(&logging_thread, "logging");
614614
#else
615615
log_init();

0 commit comments

Comments
 (0)