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:
Xiang Xiao
2020-08-10 02:29:35 +08:00
committed by patacongo
parent 7252275e15
commit acca9fcc3b
128 changed files with 728 additions and 977 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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 */
+2 -3
View File
@@ -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.
+1 -1
View File
@@ -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 */