wangchdo commented on code in PR #17308:
URL: https://github.com/apache/nuttx/pull/17308#discussion_r2513521345


##########
sched/wdog/wd_start.c:
##########
@@ -303,6 +303,16 @@ int wd_start_abstick(FAR struct wdog_s *wdog, clock_t 
ticks,
 
   flags = spin_lock_irqsave(&g_wdspinlock);
 #ifdef CONFIG_SCHED_TICKLESS
+
+  /* Reject if the wdog expiration time is
+   * earlier than the current system time
+   */
+
+  if (clock_compare(wdog->expired, clock_systime_ticks()))

Review Comment:
   Yes, I’ve considered this. I’ll need to add a timer interrupt trigger API to 
NuttX.
   Using a timer IRQ trigger is actually better.



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