diff --git a/lib/os/p4wq.c b/lib/os/p4wq.c index 339de493944..5a48ee6cf7b 100644 --- a/lib/os/p4wq.c +++ b/lib/os/p4wq.c @@ -168,10 +168,6 @@ static int static_init(void) &pp->stacks[ssz * i], pp->stack_size); - if (pp->flags & K_P4WQ_DELAYED_START) { - z_mark_thread_as_suspended(&pp->threads[i]); - } - #ifdef CONFIG_SCHED_CPU_MASK if (pp->flags & K_P4WQ_USER_CPU_MASK) { int ret = k_thread_cpu_mask_clear(&pp->threads[i]); @@ -206,7 +202,6 @@ void k_p4wq_enable_static_thread(struct k_p4wq *queue, struct k_thread *thread, #endif if (queue->flags & K_P4WQ_DELAYED_START) { - z_mark_thread_as_not_suspended(thread); k_thread_start(thread); } }