sched/wdog: Replace periodcial timer with the wd_start_next.

This commit replaced periodical timer with the wd_start_next to improve the timing accuracy.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2025-05-29 14:42:45 +08:00
committed by Alan C. Assis
parent 9d1b958524
commit efe2af643f
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ static inline void timer_restart(FAR struct posix_timer_s *timer,
*/
frame = (delay + timer->pt_delay) / timer->pt_delay;
timer->pt_overrun = frame - 1;
timer->pt_overrun = frame - 1;
timer->pt_expected += frame * timer->pt_delay;
wd_start_abstick(&timer->pt_wdog, timer->pt_expected,