nuttx/arch: merge tickless and tick process

merge nxsched_timer_expiration() into nxsched_process_timer()
    to improve code efficient

Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
wangchengdong
2026-01-12 11:31:03 +08:00
committed by Xiang Xiao
parent 9f44bff3cc
commit 15f6e399b8
24 changed files with 91 additions and 91 deletions
+5 -5
View File
@@ -38,7 +38,7 @@
* The RTOS will provide the following interfaces for use by the platform-
* specific interval timer implementation:
*
* void nxsched_timer_expiration(void): Called by the platform-specific
* void nxsched_process_timer(void): Called by the platform-specific
* logic when the interval timer expires.
*
****************************************************************************/
@@ -144,7 +144,7 @@ static struct bm3803_tickless_s g_tickless;
static void bm3803_oneshot_handler(void *arg)
{
tmrinfo("Expired...\n");
nxsched_timer_expiration();
nxsched_process_timer();
}
/****************************************************************************
@@ -273,7 +273,7 @@ int up_timer_gettime(struct timespec *ts)
* Description:
* Cancel the interval timer and return the time remaining on the timer.
* These two steps need to be as nearly atomic as possible.
* nxsched_timer_expiration() will not be called unless the timer is
* nxsched_process_timer() will not be called unless the timer is
* restarted with up_timer_start().
*
* If, as a race condition, the timer has already expired when this
@@ -312,14 +312,14 @@ int up_timer_cancel(struct timespec *ts)
* Name: up_timer_start
*
* Description:
* Start the interval timer. nxsched_timer_expiration() will be
* Start the interval timer. nxsched_process_timer() will be
* called at the completion of the timeout (unless up_timer_cancel
* is called to stop the timing.
*
* Provided by platform-specific code and called from the RTOS base code.
*
* Input Parameters:
* ts - Provides the time interval until nxsched_timer_expiration() is
* ts - Provides the time interval until nxsched_process_timer() is
* called.
*
* Returned Value: