You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/02/07 09:19:16 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on pull request #5432: sched/wdog: fix delay calculation in wd_start()
xiaoxiang781216 edited a comment on pull request #5432:
URL: https://github.com/apache/incubator-nuttx/pull/5432#issuecomment-1031237159
> If this change will be rejected I will probably need to implement something like http://www.makelinux.net/ldd3/chp-7-sect-4.shtml and base POSIX timers and `timerfd` on top of it.
Linux timer API even with the latest code still suffer the same issue as wdog since both use the tick as unit. You should add a new set API like hrtimer which use nanosecond unit: https://www.kernel.org/doc/html/latest/timers/hrtimers.html. And implement all other timer related api on top of hrtimer. Since the unit of arch(up_alarm_xxx or up_timer_exx) API in tickless mode use nanosecond unit, it's very lucky that we don't need introduce the new arch API to support the high resolution timer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org