Fix-Point commented on code in PR #18224:
URL: https://github.com/apache/nuttx/pull/18224#discussion_r2740232823


##########
sched/wdog/wd_initialize.c:
##########
@@ -41,6 +41,10 @@
 
 struct list_node g_wdactivelist = LIST_INITIAL_VALUE(g_wdactivelist);
 
+#ifdef CONFIG_HRTIMER
+struct hrtimer_s g_wdog_hrtimer;
+#endif
+
 #ifdef CONFIG_SCHED_TICKLESS
 bool g_wdtimernested;

Review Comment:
   The `in_expiration` parameter was added because we can not restart the 
`hrtimer` within its callback function; instead, we should return the 
nanoseconds of the next delay. Its semantics are different from 
`g_wdtimernested`.



-- 
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]

Reply via email to