mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
nuttx/drivers: 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:
committed by
Xiang Xiao
parent
15f6e399b8
commit
813ab962f5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user