Skip to content
Commit b37ce939 authored by Sandeep Tripathy's avatar Sandeep Tripathy Committed by Carles Cufí
Browse files

drivers: timer: fix tickless contineous interrupts



K_FOREVER/INT_MAX number of ticks needs delay cycles value of
maximum order and exceeds 'int32' range.
The typecast to 'int32' results in wrongly evaluating the value
as less than 'MIN_DELAY' and chooses 'MIN_DELAY' over the actual
delay cycles.

Cap the 'MAX_TICKS' to INT32_MAX.

fixes: #26632
Signed-off-by: default avatarSandeep Tripathy <sandeep.tripathy@broadcom.com>
parent c5132aac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment