Skip to content

Commit 59b1bb2

Browse files
Freey0kartben
authored andcommitted
driver: Add uart_emul work queue thread name
Add thread names to make debugging easier. Signed-off-by: WenBin Zhang <[email protected]>
1 parent f634401 commit 59b1bb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/serial/uart_emul.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,15 @@ struct k_work_q uart_emul_work_q;
9898

9999
int uart_emul_init_work_q(void)
100100
{
101+
struct k_work_queue_config cfg = {
102+
.name = "uart_emul_workq",
103+
.no_yield = false,
104+
};
105+
101106
k_work_queue_init(&uart_emul_work_q);
102107
k_work_queue_start(&uart_emul_work_q, uart_emul_stack_area,
103108
K_THREAD_STACK_SIZEOF(uart_emul_stack_area),
104-
CONFIG_UART_EMUL_WORK_Q_PRIORITY, NULL);
109+
CONFIG_UART_EMUL_WORK_Q_PRIORITY, &cfg);
105110
return 0;
106111
}
107112

0 commit comments

Comments
 (0)