kernel: sys_workq thread stack is kernel-only

The system workqueue is a kernel thread that doesn't run
in user mode.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-04-26 15:02:31 -07:00 committed by Anas Nashif
commit b4ce7a77c6

View file

@ -14,7 +14,7 @@
#include <kernel.h>
#include <init.h>
K_THREAD_STACK_DEFINE(sys_work_q_stack, CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE);
K_KERNEL_STACK_DEFINE(sys_work_q_stack, CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE);
struct k_work_q k_sys_work_q;
@ -24,7 +24,7 @@ static int k_sys_work_q_init(struct device *dev)
k_work_q_start(&k_sys_work_q,
sys_work_q_stack,
K_THREAD_STACK_SIZEOF(sys_work_q_stack),
K_KERNEL_STACK_SIZEOF(sys_work_q_stack),
CONFIG_SYSTEM_WORKQUEUE_PRIORITY);
k_thread_name_set(&k_sys_work_q.thread, "sysworkq");