1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +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 ztimer/convert: pass-thru start/stop ops to lower timer 2022-11-22 00:25:34 +01:00
convert_shift.c ztimer/convert: pass-thru start/stop ops to lower timer 2022-11-22 00:25:34 +01:00
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 ztimer: acquire and release clock for running timers 2022-11-22 00:25:34 +01:00
Makefile makefiles/cflags.inc.mk: Add -Wno-missing-field-initializers to CXXFLAGS 2022-10-27 14:28:06 +02:00
Makefile.dep sys/evtimer: remove support for xtimer backend 2023-05-24 09:53:33 +02:00
Makefile.include sys/ztimer: add ztimer_periph_rtt module conflict warning 2021-12-02 07:54:38 +01:00
mock.c sys/ztimer: fix typo in debug output 2023-05-02 09:53:16 +02:00
overhead.c ztimer/overhead: acquire and release clocks 2022-11-22 00:25:34 +01:00
periodic.c sys/ztimer: add ztimer_periodic_start_now() 2024-10-14 21:15:50 +02:00
periph_ptp.c sys/ztimer: add periph_ptp backend 2021-03-28 15:50:19 +02:00
periph_rtc.c ztimer/periph_rtc: add start() and stop() ops 2022-11-22 00:25:34 +01:00
periph_rtt.c ztimer/periph_rtt: add start() and stop() ops 2022-11-22 00:25:34 +01:00
periph_timer.c ztimer/periph_timer: add start() and stop() ops 2022-11-22 00:25:34 +01:00
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