diff --git a/lib/os/poweroff.c b/lib/os/poweroff.c index f4e90e477ca..2340f306d97 100644 --- a/lib/os/poweroff.c +++ b/lib/os/poweroff.c @@ -10,5 +10,9 @@ void sys_poweroff(void) { (void)irq_lock(); +#if defined(CONFIG_ZERO_LATENCY_IRQS) + (void)arch_zli_lock(); +#endif /* CONFIG_ZERO_LATENCY_IRQS */ + z_sys_poweroff(); }