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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]