Skip to content
Commit 98dfa0aa authored by Serhiy Katsyuba's avatar Serhiy Katsyuba Committed by Anas Nashif
Browse files

pm: Fix to prevent incorrect forever timeout



K_TICKS_FOREVER is defined as -1. Guard logic has been added for the case
when `ticks - exit_latency_ticks == -1` to prevent sys_clock_set_timeout()
from incorrectly setting a forever timeout.

Signed-off-by: default avatarSerhiy Katsyuba <serhiy.katsyuba@intel.com>
parent b634ede4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment