You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2025/11/04 14:40:41 UTC
Re: [PR] sched/wdog: Improve wdog precision [nuttx]
xiaoxiang781216 commented on code in PR #17279:
URL: https://github.com/apache/nuttx/pull/17279#discussion_r2490780936
##########
sched/wdog/wd_start.c:
##########
@@ -139,7 +139,7 @@ static inline_function void wd_expiration(clock_t ticks)
/* Check if expected time is expired */
- if (!clock_compare(wdog->expired, ticks))
+ if (!clock_compare(wdog->expired, clock_systime_ticks()))
Review Comment:
but clock_systime_ticks is a time consume operation in tickless mode, we should avoid call it in each iteration.
--
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