Skip to content
Commit aa8e3430 authored by Simon Guinot's avatar Simon Guinot Committed by Kumar Gala
Browse files

drivers: systick: fix cycle count in sys_clock_set_timeout()



With this patch the sys_clock_set_timeout function counts the cycles
elapsed while computing the systick timer's new load (tickless mode).
This cycles are then added to the total cycle count instead of being
lost.

This patch mitigates uptime drifting in tickless mode (especially when
high frequency timers are registered).

Signed-off-by: default avatarSimon Guinot <simon.guinot@seagate.com>
parent 858dc7fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment