drivers: modem: gsm: Use K_KERNEL_* macros
GSM workq is a system only thread, use K_KERNEL_* macros instead of K_THREAD_* Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
parent
1041f0c2ac
commit
41bff12625
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ static struct gsm_modem {
|
|||
NET_BUF_POOL_DEFINE(gsm_recv_pool, GSM_RECV_MAX_BUF, GSM_RECV_BUF_SIZE,
|
||||
0, NULL);
|
||||
K_KERNEL_STACK_DEFINE(gsm_rx_stack, GSM_RX_STACK_SIZE);
|
||||
K_THREAD_STACK_DEFINE(gsm_workq_stack, GSM_WORKQ_STACK_SIZE);
|
||||
K_KERNEL_STACK_DEFINE(gsm_workq_stack, GSM_WORKQ_STACK_SIZE);
|
||||
|
||||
static inline int gsm_work_reschedule(struct k_work_delayable *dwork, k_timeout_t delay)
|
||||
{
|
||||
|
@ -1164,7 +1164,7 @@ static int gsm_init(const struct device *dev)
|
|||
|
||||
/* initialize the work queue */
|
||||
k_work_queue_init(&gsm->workq);
|
||||
k_work_queue_start(&gsm->workq, gsm_workq_stack, K_THREAD_STACK_SIZEOF(gsm_workq_stack),
|
||||
k_work_queue_start(&gsm->workq, gsm_workq_stack, K_KERNEL_STACK_SIZEOF(gsm_workq_stack),
|
||||
K_PRIO_COOP(7), NULL);
|
||||
k_thread_name_set(&gsm->workq.thread, "gsm_workq");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue