ipc: icbmsg: Add a workqueue name
This allows to easily identify the workqueue thread when using the kernel shell commands. Signed-off-by: Adrien Ricciardi <aricciardi@baylibre.com>
This commit is contained in:
parent
6dbfc8ee02
commit
2f17465421
1 changed files with 2 additions and 1 deletions
|
@ -1255,6 +1255,7 @@ static int backend_init(const struct device *instance)
|
|||
#ifdef CONFIG_MULTITHREADING
|
||||
static K_THREAD_STACK_DEFINE(ep_bound_work_q_stack, EP_BOUND_WORK_Q_STACK_SIZE);
|
||||
static bool is_work_q_started;
|
||||
struct k_work_queue_config work_q_cfg = { .name = "icbmsg_workq" };
|
||||
|
||||
#if defined(CONFIG_ARCH_POSIX)
|
||||
native_emb_addr_remap((void **)&conf->tx.blocks_ptr);
|
||||
|
@ -1265,7 +1266,7 @@ static int backend_init(const struct device *instance)
|
|||
k_work_queue_init(&ep_bound_work_q);
|
||||
k_work_queue_start(&ep_bound_work_q, ep_bound_work_q_stack,
|
||||
K_THREAD_STACK_SIZEOF(ep_bound_work_q_stack),
|
||||
EP_BOUND_WORK_Q_PRIORITY, NULL);
|
||||
EP_BOUND_WORK_Q_PRIORITY, &work_q_cfg);
|
||||
|
||||
is_work_q_started = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue