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:
parent
9ba4653243
commit
7084662cc8
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue