wangchdo opened a new pull request, #17192:
URL: https://github.com/apache/nuttx/pull/17192
In the current NuttX kernel implementation, there is no function
to represent pure scheduler ticks.
The existing clock_systime_ticks() cannot serve this purpose,
because it keeps increasing even when the scheduler is not running.
This happens since the returned value reflects real hardware time:
as long as the timer or alarm hardware is active,
clock_systime_ticks() will continuously increase.
This patch introduces two new functions that provide access to
scheduler ticks — a counter that only increases when the scheduler
itself is running.
*Note: Please adhere to [Contributing
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
add two new functions to maintain a pure scheduler related ticks in nuttx
## Impact
new functions added, now impact to the existing nuttx functions
## Testing
**ostest passed on board a2g-tc397-5v-tft**
<img width="660" height="527" alt="image"
src="https://github.com/user-attachments/assets/370971b1-c515-4222-8cf5-c3af4b029350"
/>
**ostest passed on board fvp-armv8r-aarch32**
<img width="664" height="723" alt="image"
src="https://github.com/user-attachments/assets/54f394fc-5fe7-4edc-aac6-8f3518758b21"
/>
--
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]