Skip to content

Conversation

@Fix-Point
Copy link
Contributor

Summary

This PR is the part IV of #17556. To support high-precision timer, this PR removed CONFIG_SCHED_TICKLESS_TICK_ARGUMENT to simplify kernel configuration and expiration handling.

Impact

This PR removes CONFIG_SCHED_TICKLESS_TICK_ARGUMENT. The up_alarm/timer_tick_start/cancel interfaces are now only used as internal OS interfaces, implemented by the oneshot or timer timer driver abstraction. This change affects NuttX timer interrupt handling.

Testing

➜   qemu-system-riscv32 -semihosting -M virt,aclint=on -cpu rv32 -smp 8 -bios none -nographic -kernel nuttx

NuttShell (NSH) NuttX-12.11.0
nsh> ostest
stdio_test: write fd=1
stdio_test: Standard I/O Check: printf
...

Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     1fd06e0  1fd06e0
ordblks         1        9
mxordblk  1fcc5f0  1fbbb88
uordblks     40f0     8f98
fordblks  1fcc5f0  1fc7748
user_main: Exiting
ostest_main: Exiting with status 0
nsh> 

This commit simplified the interval adjustment in nxsched_timer_start.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit simplified the timer_start/cancel in sched_timerexpiration.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
@github-actions github-actions bot added Area: Drivers Drivers issues Area: OS Components OS Components issues Size: M The size of the change in this PR is medium labels Dec 25, 2025
@xiaoxiang781216 xiaoxiang781216 merged commit dfdbf4d into apache:master Dec 26, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Area: OS Components OS Components issues Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants