mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 02:16:35 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| hrtimer.h | ||
| hrtimer_cancel.c | ||
| hrtimer_gettime.c | ||
| hrtimer_initialize.c | ||
| hrtimer_process.c | ||
| hrtimer_start.c | ||
| Make.defs | ||