-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct core RTOS sleep routine timing #12938
Conversation
Chrono conversions inadvertantly changed the core timed sleep routine used by the RTOS idle to use `OsTimer::update_and_get_tick()` instead of `OsTimer::get_tick()`. Correct this, and expand/clarify documentation and naming to try to prevent recurrence. Another minor fix observed while inspecting code - `OsClock` can't just use `milliseconds`, it should match the period of `OsTimer`, which theoretically can be different.
@kjbracey-arm, thank you for your changes. |
Hi
|
Oh well. Not looked into your failures specifically yet, but was hoping it might be the same issue. Could you do me a favour and run a git bisect on the master/chrono-bisect branches on my fork? The topic branch isn't bisectable in the main tree, but I've made a bisectable version of that branch and its merge to master.
and go through the bisection running the test. (I'm only counting #12920 as the Wisun failure report - so far your issue is just a comment, so it might be about to get closed...) I guess it couldn't have been the same issue, as you were seeing problems in non-tickless targets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TrivialClock is not trivial (me after reading the comments there).
Tis a silly name. |
Ci started |
Tested and fixes the original #12920 issue with Wi-SUN stack. So approval from me. |
Note that tests are failing for DISCO_L475VG_IOT01A (tickless target) and NUCLEO_F429ZI (non tickless) |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
I restarted travis to report a status back |
@jeromecoutant will work on finding the root case. Thanks for the bisect! I'll merge this now. |
Summary of changes
Chrono conversions inadvertantly changed the core timed sleep routine used by the RTOS idle to use
OsTimer::update_and_get_tick()
instead ofOsTimer::get_tick()
.Correct this, and expand/clarify documentation and naming to try to prevent recurrence.
Another minor fix observed while inspecting code -
OsClock
can't just usemilliseconds
, it should match the period ofOsTimer
, which theoretically can be different.Fixes #12920.
Impact of changes
Migration actions required
Documentation
None.
Pull request type
Test results
Reviewers
@JarkkoPaso, @jeromecoutant