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


##########
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:
   I introduced a new API: up_timer_trigger() to trigger a timer interrupt 
instantly.
   If this API is not implemented in the architecture layer, the wdog will fall 
back to the time-consuming
   up_timer_tick_start() or up_alarm_tick_start() instead.



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