sched/wdog: remove wd_cancel_irq() implement

we do not need this implement after change the lock from csec to spin_lock

Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
chao an
2025-01-17 09:05:11 +08:00
committed by Xiang Xiao
parent bac2df6bc8
commit 8877366c0e
2 changed files with 1 additions and 46 deletions
-19
View File
@@ -297,25 +297,6 @@ static inline int wd_start_realtime(FAR struct wdog_s *wdog,
int wd_cancel(FAR struct wdog_s *wdog);
/****************************************************************************
* Name: wd_cancel_irq
*
* Description:
* This function cancels a currently running watchdog timer. Watchdog
* timers may be cancelled from the interrupt level. This function is
* intended to be called from critical sections.
*
* Input Parameters:
* wdog - ID of the watchdog to cancel.
*
* Returned Value:
* Zero (OK) is returned on success; A negated errno value is returned to
* indicate the nature of any failure.
*
****************************************************************************/
int wd_cancel_irq(FAR struct wdog_s *wdog);
/****************************************************************************
* Name: wd_gettime
*
+1 -27
View File
@@ -59,32 +59,6 @@
****************************************************************************/
int wd_cancel(FAR struct wdog_s *wdog)
{
int ret;
ret = wd_cancel_irq(wdog);
return ret;
}
/****************************************************************************
* Name: wd_cancel_irq
*
* Description:
* This function cancels a currently running watchdog timer. Watchdog
* timers may be cancelled from the interrupt level. This function is
* intended to be called from critical sections.
*
* Input Parameters:
* wdog - ID of the watchdog to cancel.
*
* Returned Value:
* Zero (OK) is returned on success; A negated errno value is returned to
* indicate the nature of any failure.
*
****************************************************************************/
int wd_cancel_irq(FAR struct wdog_s *wdog)
{
irqstate_t flags;
bool head;
@@ -127,5 +101,5 @@ int wd_cancel_irq(FAR struct wdog_s *wdog)
nxsched_reassess_timer();
}
return OK;
return 0;
}