mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
sched/wdog: Remove MAX_WDOGPARMS and related stuff
since the variable arguments are error prone and seldom used. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -166,7 +166,7 @@ int nxsem_clockwait(FAR sem_t *sem, clockid_t clockid,
|
||||
|
||||
/* Start the watchdog */
|
||||
|
||||
wd_start(&rtcb->waitdog, ticks, nxsem_timeout, 1, (wdparm_t)getpid());
|
||||
wd_start(&rtcb->waitdog, ticks, nxsem_timeout, getpid());
|
||||
|
||||
/* Now perform the blocking wait. If nxsem_wait() fails, the
|
||||
* negated errno value will be returned below.
|
||||
|
||||
@@ -120,7 +120,7 @@ int nxsem_tickwait(FAR sem_t *sem, clock_t start, uint32_t delay)
|
||||
|
||||
/* Start the watchdog with interrupts still disabled */
|
||||
|
||||
wd_start(&rtcb->waitdog, delay, nxsem_timeout, 1, (wdparm_t)getpid());
|
||||
wd_start(&rtcb->waitdog, delay, nxsem_timeout, getpid());
|
||||
|
||||
/* Now perform the blocking wait */
|
||||
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
* semaphore is acquired.
|
||||
*
|
||||
* Input Parameters:
|
||||
* argc - The number of arguments (should be 1)
|
||||
* pid - The task ID of the task to wakeup
|
||||
*
|
||||
* Returned Value:
|
||||
@@ -71,7 +70,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void nxsem_timeout(int argc, wdparm_t pid, ...)
|
||||
void nxsem_timeout(wdparm_t pid)
|
||||
{
|
||||
FAR struct tcb_s *wtcb;
|
||||
irqstate_t flags;
|
||||
@@ -84,7 +83,7 @@ void nxsem_timeout(int argc, wdparm_t pid, ...)
|
||||
* task may no longer be active when this watchdog goes off.
|
||||
*/
|
||||
|
||||
wtcb = nxsched_get_tcb((pid_t)pid);
|
||||
wtcb = nxsched_get_tcb(pid);
|
||||
|
||||
/* It is also possible that an interrupt/context switch beat us to the
|
||||
* punch and already changed the task's state.
|
||||
|
||||
@@ -60,7 +60,7 @@ void nxsem_wait_irq(FAR struct tcb_s *wtcb, int errcode);
|
||||
|
||||
/* Handle semaphore timer expiration */
|
||||
|
||||
void nxsem_timeout(int argc, wdparm_t pid, ...);
|
||||
void nxsem_timeout(wdparm_t pid);
|
||||
|
||||
/* Recover semaphore resources with a task or thread is destroyed */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user