Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions include/nuttx/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -1967,11 +1967,8 @@ void up_timer_getmask(FAR clock_t *mask);
****************************************************************************/

#if defined(CONFIG_SCHED_TICKLESS) && defined(CONFIG_SCHED_TICKLESS_ALARM)
# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT
int up_alarm_cancel(FAR struct timespec *ts);
# else
int up_alarm_tick_cancel(FAR clock_t *ticks);
# endif
#endif

/****************************************************************************
Expand Down Expand Up @@ -2000,11 +1997,8 @@ int up_alarm_tick_cancel(FAR clock_t *ticks);
****************************************************************************/

#if defined(CONFIG_SCHED_TICKLESS) && defined(CONFIG_SCHED_TICKLESS_ALARM)
# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT
int up_alarm_start(FAR const struct timespec *ts);
# else
int up_alarm_tick_start(clock_t ticks);
# endif
#endif

/****************************************************************************
Expand Down Expand Up @@ -2044,11 +2038,8 @@ int up_alarm_tick_start(clock_t ticks);
****************************************************************************/

#if defined(CONFIG_SCHED_TICKLESS) && !defined(CONFIG_SCHED_TICKLESS_ALARM)
# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT
int up_timer_cancel(FAR struct timespec *ts);
# else
int up_timer_tick_cancel(FAR clock_t *ticks);
# endif
#endif

/****************************************************************************
Expand Down Expand Up @@ -2077,11 +2068,8 @@ int up_timer_tick_cancel(FAR clock_t *ticks);
****************************************************************************/

#if defined(CONFIG_SCHED_TICKLESS) && !defined(CONFIG_SCHED_TICKLESS_ALARM)
# ifndef CONFIG_SCHED_TICKLESS_TICK_ARGUMENT
int up_timer_start(FAR const struct timespec *ts);
# else
int up_timer_tick_start(clock_t ticks);
# endif
#endif

/****************************************************************************
Expand Down
10 changes: 10 additions & 0 deletions sched/wdog/wd_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ int wd_start_abstick(FAR struct wdog_s *wdog, clock_t ticks,

reassess |= wd_insert(wdog, ticks, wdentry, arg);

if (clock_compare(wdog->expired, clock_systime_ticks()))
{
# ifdef CONFIG_SCHED_TICKLESS_ALARM
up_alarm_tick_start(clock_systime_ticks() + 1);
# else
up_timer_tick_start(clock_systime_ticks() + 1);
# endif
reassess = false;
}

if (!g_wdtimernested && reassess)
{
/* Resume the interval timer that will generate the next
Expand Down
Loading