1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/sys/ztimer
Joshua DeWeese 45942f6821 sys/ztimer: fix re-scheduling of timers
If the timer at the head of a ztimer clock's timer list is re-scheduled
(ztimer_set() called on an already set timer) and the timer is no longer
at the head after being re-scheduled, clock-ops->set() is never called
from inside ztimer_set(), and the underlying timer is left with an ISR
scheduled to expire at the timer's old time. The intended behavior is
that the clock's lower level timer should always be set to expire at the
time of the clocks head timer.

This patch changes ztimer_set() to call _ztimer_update(), which sets the
lower level timer according to the current list of timers, rather than
setting the timer directly inside of ztimer_set().
2024-10-18 14:52:11 -04:00
..
convert_frac.c ztimer/ztimer64: uncrustify code 2023-03-15 15:13:48 +01:00
convert_muldiv64.c
convert_shift.c
convert.c ztimer/ztimer64: uncrustify code 2023-03-15 15:13:48 +01:00
core.c sys/ztimer: fix re-scheduling of timers 2024-10-18 14:52:11 -04:00
init.c
Makefile
Makefile.dep sys/evtimer: remove support for xtimer backend 2023-05-24 09:53:33 +02:00
Makefile.include
mock.c sys/ztimer: fix typo in debug output 2023-05-02 09:53:16 +02:00
overhead.c
periodic.c sys/ztimer: add ztimer_periodic_start_now() 2024-10-14 21:15:50 +02:00
periph_ptp.c
periph_rtc.c
periph_rtt.c
periph_timer.c
util.c ztimer: introduce ztimer_mutex_unlock_after() 2023-01-13 00:08:55 +01:00
xtimer2ztimer.cocci sys/ztimer: Remove the deprecated ztimer_now64 2024-08-20 20:52:37 +02:00