diff --git a/kernel/idle.c b/kernel/idle.c index 8beb94f6ec..1b9d3c77b0 100644 --- a/kernel/idle.c +++ b/kernel/idle.c @@ -135,6 +135,8 @@ void idle(void *p1, void *unused2, void *unused3) k_yield(); #else + (void) arch_irq_lock(); + #ifdef CONFIG_SYS_CLOCK_EXISTS int32_t ticks = z_get_next_timeout_expiry();