nuttx/sched/hrtimer
ouyangxiangzhen f134a5678d sched/hrtimer: Fix reprogram with wrong expiration when reinserting hrtimer
In hrtimer_start_absolute, when a pending hrtimer is removed (was the
head) and reinserted with a later expiration time, the reprogram flag
remains true but the hrtimer is no longer the earliest timer in the
queue. The old code passed hrtimer->expired to hrtimer_reprogram, which
was incorrect. Use hrtimer_get_first()->expired to ensure the hardware
timer is reprogrammed with the actual earliest timer's expiration time.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2026-09-07 10:17:46 -03:00
..
CMakeLists.txt sched/hrtimer: Add hrtimer_gettime. 2026-01-26 16:37:10 +08:00
hrtimer.h sched/hrtimer: Update the comments. 2026-02-02 13:26:22 +08:00
hrtimer_cancel.c sched/hrtimer: Update the comments. 2026-02-02 13:26:22 +08:00
hrtimer_gettime.c sched/hrtimer: Add hrtimer_gettime. 2026-01-26 16:37:10 +08:00
hrtimer_initialize.c sched/hrtimer: Update the comments. 2026-02-02 13:26:22 +08:00
hrtimer_process.c sched/hrtimer: Simplify the hrtimer. 2026-02-02 13:26:22 +08:00
hrtimer_start.c sched/hrtimer: Fix reprogram with wrong expiration when reinserting hrtimer 2026-09-07 10:17:46 -03:00
Make.defs sched/hrtimer: Add hrtimer_gettime. 2026-01-26 16:37:10 +08:00