This is an automated email from the ASF dual-hosted git repository.

michallenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 1be6287c5e3da62d902a9d6b863ce99529c46bbb
Author: Bowen Wang <[email protected]>
AuthorDate: Fri Oct 30 18:35:50 2026 +0800

    drivers/rptun/rptun_ivshmem: use wd_start_next() for the polling timer
    
    The polling watchdog re-arms itself with wd_start() from its own
    callback, so each period starts when the callback runs rather than
    when the previous one expired, and the callback latency accumulates
    as drift. wd_start_next() re-arms relative to the last expiration,
    which is what a periodic timer needs.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/rptun/rptun_ivshmem.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rptun/rptun_ivshmem.c b/drivers/rptun/rptun_ivshmem.c
index 1d3cce3a139..644ecc1fb5a 100644
--- a/drivers/rptun/rptun_ivshmem.c
+++ b/drivers/rptun/rptun_ivshmem.c
@@ -432,8 +432,8 @@ static void rptun_ivshmem_wdog(wdparm_t arg)
       priv->callback(priv->arg, RPTUN_NOTIFY_ALL);
     }
 
-  wd_start(&priv->wdog, RPTUN_IVSHMEM_WDOG_DELAY, rptun_ivshmem_wdog,
-           (wdparm_t)priv);
+  wd_start_next(&priv->wdog, RPTUN_IVSHMEM_WDOG_DELAY, rptun_ivshmem_wdog,
+                (wdparm_t)priv);
 }
 
 /****************************************************************************

Reply via email to