You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2026/01/12 08:20:51 UTC

(nuttx) 03/04: nuttx/drivers: merge tickless and tick process

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

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

commit 813ab962f55cdfef0df91a3f6f6cf49dfff1e7ea
Author: wangchengdong <wa...@lixiang.com>
AuthorDate: Mon Jan 12 11:31:11 2026 +0800

    nuttx/drivers: merge tickless and tick process
    
        merge nxsched_timer_expiration() into nxsched_process_timer()
        to improve code efficient
    
    Signed-off-by: Chengdong Wang <wa...@lixiang.com>
---
 drivers/timers/arch_timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/timers/arch_timer.c b/drivers/timers/arch_timer.c
index a6caacb59b3..9b0c348b6c9 100644
--- a/drivers/timers/arch_timer.c
+++ b/drivers/timers/arch_timer.c
@@ -174,7 +174,7 @@ static bool timer_callback(FAR uint32_t *next_interval, FAR void *arg)
   g_timer.timebase     += *next_interval;
   temp_interval         = g_oneshot_maxticks;
   g_timer.next_interval = &temp_interval;
-  nxsched_timer_expiration();
+  nxsched_process_timer();
   g_timer.next_interval = NULL;
 
   TIMER_TICK_GETSTATUS(g_timer.lower, &status);