wangchdo opened a new pull request, #18026: URL: https://github.com/apache/nuttx/pull/18026
## Summary Add list-based support for hrtimer management. Using a simple list reduces memory usage compared to an RB-tree and is advantageous when handling a relatively small number of hrtimers. ## Impact Enhance hrtimer implementation; changes are isolated and do not affect other NuttX functions ## Testing ostest passed using list-based hrtimer: **rv-virt:smp64** <img width="603" height="329" alt="image" src="https://github.com/user-attachments/assets/3f3a16fe-a67c-48d4-8416-8ddab9d3ac08" /> ``` NuttShell (NSH) nsh> nsh> uname -a NuttX 0.0.0 cc94a9e19a-dirty Jan 20 2026 09:45:29 risc-v rv-virt nsh> ostest (...) user_main: hrtimer test End of test memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 1fc0fa0 1fc0fa0 ordblks 8 8 mxordblk 1f81ab0 1f81ab0 uordblks 15c90 17480 fordblks 1fab310 1fa9b20 Final memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 1fc0fa0 1fc0fa0 ordblks 1 8 mxordblk 1fb5ea8 1f81ab0 uordblks b0f8 17480 fordblks 1fb5ea8 1fa9b20 user_main: Exiting ostest_main: Exiting with status 0 nsh> ``` **a2g-tc397-5v-tft:nsh** <img width="511" height="409" alt="image" src="https://github.com/user-attachments/assets/f679af0e-07a5-49e9-9092-0a8043a1e9f2" /> ``` NuttShell (NSH) nsh> nsh> uname -a NuttX 0.0.0 cc94a9e19a-dirty Jan 20 2026 09:49:11 tricore a2g-tc397-5v-tft nsh> nsh> ostest (...) user_main: hrtimer test End of test memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 28e00 28e00 ordblks 6 6 mxordblk 1f890 1f890 uordblks 5578 5578 fordblks 23888 23888 Final memory usage: VARIABLE BEFORE AFTER ======== ======== ======== arena 28e00 28e00 ordblks 1 6 mxordblk 24208 1f890 uordblks 4bf8 5578 fordblks 24208 23888 user_main: Exiting ostest_main: Exiting with status 0 nsh> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
