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:
parent
0c297461c5
commit
b4ce7a77c6
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue