From c0c4ba85164e7ba2351315e763f0c3b9a0473ac9 Mon Sep 17 00:00:00 2001 From: "Charles E. Youse" Date: Sat, 28 Sep 2019 12:40:19 -0400 Subject: [PATCH] kernel/idle.c: fix compilation failure (SMP && !SCHED_IPI_SUPPORTED) An #endif and the brace terminating a compound statement were transposed, causing compilation errors with the above-specified combination of configuration options. Signed-off-by: Charles E. Youse --- kernel/idle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/idle.c b/kernel/idle.c index c874df5271a..3a9f9710b52 100644 --- a/kernel/idle.c +++ b/kernel/idle.c @@ -159,8 +159,7 @@ void idle(void *unused1, void *unused2, void *unused3) #else (void)z_arch_irq_lock(); sys_power_save_idle(); - IDLE_YIELD_IF_COOP(); - } #endif + } }