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
+3 -5
View File
@@ -54,7 +54,6 @@
* becomes non-empty.
*
* Input Parameters:
* argc - the number of arguments (should be 1)
* pid - the task ID of the task to wakeup
*
* Returned Value:
@@ -64,7 +63,7 @@
*
****************************************************************************/
static void nxmq_rcvtimeout(int argc, wdparm_t pid, ...)
static void nxmq_rcvtimeout(wdparm_t pid)
{
FAR struct tcb_s *wtcb;
irqstate_t flags;
@@ -79,7 +78,7 @@ static void nxmq_rcvtimeout(int argc, wdparm_t pid, ...)
* 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.
@@ -209,8 +208,7 @@ ssize_t nxmq_timedreceive(mqd_t mqdes, FAR char *msg, size_t msglen,
/* Start the watchdog */
wd_start(&rtcb->waitdog, ticks,
nxmq_rcvtimeout, 1, (wdparm_t)getpid());
wd_start(&rtcb->waitdog, ticks, nxmq_rcvtimeout, getpid());
}
/* Get the message from the message queue */
+3 -4
View File
@@ -53,7 +53,6 @@
* becomes non-full.
*
* Input Parameters:
* argc - the number of arguments (should be 1)
* pid - the task ID of the task to wakeup
*
* Returned Value:
@@ -63,7 +62,7 @@
*
****************************************************************************/
static void nxmq_sndtimeout(int argc, wdparm_t pid, ...)
static void nxmq_sndtimeout(wdparm_t pid)
{
FAR struct tcb_s *wtcb;
irqstate_t flags;
@@ -78,7 +77,7 @@ static void nxmq_sndtimeout(int argc, wdparm_t pid, ...)
* 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.
@@ -244,7 +243,7 @@ int nxmq_timedsend(mqd_t mqdes, FAR const char *msg, size_t msglen,
/* Start the watchdog and begin the wait for MQ not full */
wd_start(&rtcb->waitdog, ticks, nxmq_sndtimeout, 1, (wdparm_t)getpid());
wd_start(&rtcb->waitdog, ticks, nxmq_sndtimeout, getpid());
/* And wait for the message queue to be non-empty */