mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +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:
@@ -165,10 +165,10 @@ static int misoc_net_interrupt(int irq, FAR void *context, FAR void *arg);
|
||||
/* Watchdog timer expirations */
|
||||
|
||||
static void misoc_net_txtimeout_work(FAR void *arg);
|
||||
static void misoc_net_txtimeout_expiry(int argc, wdparm_t arg, ...);
|
||||
static void misoc_net_txtimeout_expiry(wdparm_t arg);
|
||||
|
||||
static void misoc_net_poll_work(FAR void *arg);
|
||||
static void misoc_net_poll_expiry(int argc, wdparm_t arg, ...);
|
||||
static void misoc_net_poll_expiry(wdparm_t arg);
|
||||
|
||||
/* NuttX callback functions */
|
||||
|
||||
@@ -274,7 +274,7 @@ static int misoc_net_transmit(FAR struct misoc_net_driver_s *priv)
|
||||
/* Setup the TX timeout watchdog (perhaps restarting the timer) */
|
||||
|
||||
wd_start(&priv->misoc_net_txtimeout, MISOC_NET_TXTIMEOUT,
|
||||
misoc_net_txtimeout_expiry, 1, (wdparm_t)priv);
|
||||
misoc_net_txtimeout_expiry, (wdparm_t)priv);
|
||||
return OK;
|
||||
}
|
||||
|
||||
@@ -713,8 +713,7 @@ static void misoc_net_txtimeout_work(FAR void *arg)
|
||||
* The last TX never completed. Reset the hardware and start again.
|
||||
*
|
||||
* Input Parameters:
|
||||
* argc - The number of available arguments
|
||||
* arg - The first argument
|
||||
* arg - The argument
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
@@ -724,7 +723,7 @@ static void misoc_net_txtimeout_work(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void misoc_net_txtimeout_expiry(int argc, wdparm_t arg, ...)
|
||||
static void misoc_net_txtimeout_expiry(wdparm_t arg)
|
||||
{
|
||||
FAR struct misoc_net_driver_s *priv = (FAR struct misoc_net_driver_s *)arg;
|
||||
|
||||
@@ -782,7 +781,7 @@ static void misoc_net_poll_work(FAR void *arg)
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(&priv->misoc_net_txpoll, MISOC_NET_WDDELAY,
|
||||
misoc_net_poll_expiry, 1, (wdparm_t)priv);
|
||||
misoc_net_poll_expiry, (wdparm_t)priv);
|
||||
|
||||
net_unlock();
|
||||
}
|
||||
@@ -794,8 +793,7 @@ static void misoc_net_poll_work(FAR void *arg)
|
||||
* Periodic timer handler. Called from the timer interrupt handler.
|
||||
*
|
||||
* Input Parameters:
|
||||
* argc - The number of available arguments
|
||||
* arg - The first argument
|
||||
* arg - The argument
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
@@ -805,7 +803,7 @@ static void misoc_net_poll_work(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void misoc_net_poll_expiry(int argc, wdparm_t arg, ...)
|
||||
static void misoc_net_poll_expiry(wdparm_t arg)
|
||||
{
|
||||
FAR struct misoc_net_driver_s *priv = (FAR struct misoc_net_driver_s *)arg;
|
||||
|
||||
@@ -867,7 +865,7 @@ static int misoc_net_ifup(FAR struct net_driver_s *dev)
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(&priv->misoc_net_txpoll, MISOC_NET_WDDELAY,
|
||||
misoc_net_poll_expiry, 1, (wdparm_t)priv);
|
||||
misoc_net_poll_expiry, (wdparm_t)priv);
|
||||
|
||||
priv->misoc_net_bifup = true;
|
||||
up_enable_irq(ETHMAC_INTERRUPT);
|
||||
|
||||
Reference in New Issue
Block a user