timeouts: Fix power _sys_suspend invocation

Use K_TICKS_FOREVER instead of K_FOREVER after the timeout API rework.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
Carles Cufi 2020-05-05 17:06:50 +02:00 committed by Carles Cufí
commit 04d1104ee5

View file

@ -83,7 +83,7 @@ void sys_pm_force_power_state(enum power_states state)
#ifdef CONFIG_SYS_PM_DIRECT_FORCE_MODE
(void)arch_irq_lock();
forced_pm_state = state;
_sys_suspend(K_FOREVER);
_sys_suspend(K_TICKS_FOREVER);
#else
forced_pm_state = state;
#endif