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 <ExtremeGTX@hotmail.com>
This commit is contained in:
Mohamed ElShahawi 2024-03-29 01:13:48 +01:00 committed by Carles Cufí
parent 9ba4653243
commit 7084662cc8

View file

@ -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,