Skip to content
Commit 8fa5d7c8 authored by Serhiy Katsyuba's avatar Serhiy Katsyuba Committed by github-actions[bot]
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>
(cherry picked from commit 98dfa0aa)
parent 413b789d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment