wdog: rename wd_start_absolute() to wd_start_abstick()

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2024-08-08 12:16:15 +08:00 committed by Xiang Xiao
parent 81b97b676b
commit 9c423ee5fa
3 changed files with 13 additions and 13 deletions

View file

@ -138,7 +138,7 @@ int wd_start(FAR struct wdog_s *wdog, sclock_t delay,
wdentry_t wdentry, wdparm_t arg);
/****************************************************************************
* Name: wd_start_absolute
* Name: wd_start_abstick
*
* Description:
* This function adds a watchdog timer to the active timer queue. The
@ -173,8 +173,8 @@ int wd_start(FAR struct wdog_s *wdog, sclock_t delay,
*
****************************************************************************/
int wd_start_absolute(FAR struct wdog_s *wdog, clock_t ticks,
wdentry_t wdentry, wdparm_t arg);
int wd_start_abstick(FAR struct wdog_s *wdog, clock_t ticks,
wdentry_t wdentry, wdparm_t arg);
/****************************************************************************
* Name: wd_cancel

View file

@ -120,8 +120,8 @@ static inline void timer_restart(FAR struct posix_timer_s *timer,
timer->pt_overrun++;
}
wd_start_absolute(&timer->pt_wdog, timer->pt_expected,
timer_timeout, itimer);
wd_start_abstick(&timer->pt_wdog, timer->pt_expected,
timer_timeout, itimer);
}
}
@ -322,8 +322,8 @@ int timer_settime(timer_t timerid, int flags,
/* Then start the watchdog */
ret = wd_start_absolute(&timer->pt_wdog, timer->pt_expected,
timer_timeout, (wdparm_t)timer);
ret = wd_start_abstick(&timer->pt_wdog, timer->pt_expected,
timer_timeout, (wdparm_t)timer);
if (ret < 0)
{

View file

@ -212,7 +212,7 @@ void wd_insert(FAR struct wdog_s *wdog, clock_t expired,
****************************************************************************/
/****************************************************************************
* Name: wd_start_absolute
* Name: wd_start_abstick
*
* Description:
* This function adds a watchdog timer to the active timer queue. The
@ -247,8 +247,8 @@ void wd_insert(FAR struct wdog_s *wdog, clock_t expired,
*
****************************************************************************/
int wd_start_absolute(FAR struct wdog_s *wdog, clock_t ticks,
wdentry_t wdentry, wdparm_t arg)
int wd_start_abstick(FAR struct wdog_s *wdog, clock_t ticks,
wdentry_t wdentry, wdparm_t arg)
{
irqstate_t flags;
bool reassess = false;
@ -278,7 +278,7 @@ int wd_start_absolute(FAR struct wdog_s *wdog, clock_t ticks,
ticks++;
/* NOTE: There is a race condition here... the caller may receive
* the watchdog between the time that wd_start_absolute is called and
* the watchdog between the time that wd_start_abstick is called and
* the critical section is established.
*/
@ -368,8 +368,8 @@ int wd_start(FAR struct wdog_s *wdog, sclock_t delay,
return -EINVAL;
}
return wd_start_absolute(wdog, clock_systime_ticks() + delay,
wdentry, arg);
return wd_start_abstick(wdog, clock_systime_ticks() + delay,
wdentry, arg);
}
/****************************************************************************