Skip to content

Commit 2f17465

Browse files
RICCIARDI-Adrienkartben
authored andcommitted
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 <[email protected]>
1 parent 6dbfc8e commit 2f17465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/ipc/ipc_service/backends/ipc_icbmsg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,7 @@ static int backend_init(const struct device *instance)
12551255
#ifdef CONFIG_MULTITHREADING
12561256
static K_THREAD_STACK_DEFINE(ep_bound_work_q_stack, EP_BOUND_WORK_Q_STACK_SIZE);
12571257
static bool is_work_q_started;
1258+
struct k_work_queue_config work_q_cfg = { .name = "icbmsg_workq" };
12581259

12591260
#if defined(CONFIG_ARCH_POSIX)
12601261
native_emb_addr_remap((void **)&conf->tx.blocks_ptr);
@@ -1265,7 +1266,7 @@ static int backend_init(const struct device *instance)
12651266
k_work_queue_init(&ep_bound_work_q);
12661267
k_work_queue_start(&ep_bound_work_q, ep_bound_work_q_stack,
12671268
K_THREAD_STACK_SIZEOF(ep_bound_work_q_stack),
1268-
EP_BOUND_WORK_Q_PRIORITY, NULL);
1269+
EP_BOUND_WORK_Q_PRIORITY, &work_q_cfg);
12691270

12701271
is_work_q_started = true;
12711272
}

0 commit comments

Comments
 (0)