nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

nuttx/timer: add arch_alarm tick interface

Open zyfeier opened this issue 3 years ago • 2 comments

Summary

Change sched and up timer interface to tick count.

Impact

Testing

zyfeier avatar Sep 07 '22 12:09 zyfeier

Hi @zyfeier please include more information about this PR, what was the main motivation and what are the benefits of using this new interface? Did it make the system more accurate for timer measuring?

acassis avatar Sep 11 '22 15:09 acassis

Hi @zyfeier please include more information about this PR, what was the main motivation and what are the benefits of using this new interface? Did it make the system more accurate for timer measuring?

Hi, acassis. This PR is not ready for review, it's a temporary change. I'll add more information if it was ready.

zyfeier avatar Sep 13 '22 05:09 zyfeier

@acassis this patch is ready for review. The motivation of this patch is to remove tick<->timespec conversion in tickless mode to improve the performance. Of course, the old interface still keep, the user need enable SCHED_TICKLESS_TICK_ARGUMENT to get the benefit.

xiaoxiang781216 avatar Oct 10 '22 17:10 xiaoxiang781216

@zyfeier Please rebase this PR to the latest upstream master.

masayuki2009 avatar Oct 11 '22 13:10 masayuki2009