From 7084662cc80b02c7add1bd1efa68b96e53e52996 Mon Sep 17 00:00:00 2001 From: Mohamed ElShahawi Date: Fri, 29 Mar 2024 01:13:48 +0100 Subject: [PATCH] kernel: system_work_q: Mark queue thread as essential Marking sysworkq as essential, so when it fails, the system will halt instead of continuously working, and dependent components stay in a broken state. Signed-off-by: Mohamed ElShahawi --- kernel/system_work_q.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/system_work_q.c b/kernel/system_work_q.c index 02b1c4c2d2..5cc26fd82e 100644 --- a/kernel/system_work_q.c +++ b/kernel/system_work_q.c @@ -24,6 +24,7 @@ static int k_sys_work_q_init(void) struct k_work_queue_config cfg = { .name = "sysworkq", .no_yield = IS_ENABLED(CONFIG_SYSTEM_WORKQUEUE_NO_YIELD), + .essential = true, }; k_work_queue_start(&k_sys_work_q,