Skip to content
Commit 13f2f2cc authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Anas Nashif
Browse files

arm_arch_timer: fix maximum allowed cycles between reports



The code currently clamps timeout length so not to overflow the computed
cycle difference variable or the sys_clock_announce() argument's range.
But this completely fails to take into account the case where two
successive timeouts with enough time between them will still overflow the
cycle difference and/or the tick count.

Fix this by clamping the actual number of cycles to wait for based on
the previous report occurrence rather than clamping the timeout ticks.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent a99185fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment