From a4b88193cc415df46bbc498d2477a978fb07430f Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 7 Apr 2021 14:43:07 +0200 Subject: [PATCH] p4wq: fix initialisation with SMP disabled When SMP is disabled, the SMP initialisation level is undefined, therefore a different level must be used. Signed-off-by: Guennadi Liakhovetski --- lib/os/p4wq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/os/p4wq.c b/lib/os/p4wq.c index 9d97824b0d2..ed273d4f7c0 100644 --- a/lib/os/p4wq.c +++ b/lib/os/p4wq.c @@ -145,7 +145,7 @@ static int static_init(const struct device *dev) * so they can initialize in parallel instead of serially on the main * CPU. */ -SYS_INIT(static_init, SMP, 99); +SYS_INIT(static_init, APPLICATION, 99); void k_p4wq_submit(struct k_p4wq *queue, struct k_p4wq_work *item) {