Skip to content

Conversation

@backporting
Copy link

@backporting backporting bot commented Sep 3, 2019

Backport #18744.

The current implementation does not return the low 32 bits of
k_uptime_get() as suggested by it's documentation; it returns the number
of milliseconds represented by the low 32-bits of the underlying system
clock.  The truncation before translation results in discontinuities at
every point where the system clock increments bit 33.

Reimplement it using the full-precision value, and update the
documentation to note that this variant has little value for
long-running applications.

Closes #18739.

Signed-off-by: Peter Bigot <[email protected]>
@wentongwu wentongwu added the area: Timer Timer label Sep 5, 2019
@nashif nashif closed this Sep 20, 2019
@nashif nashif reopened this Sep 20, 2019
@zephyrbot zephyrbot added area: API Changes to public APIs area: Kernel labels Sep 20, 2019
@nashif nashif merged commit 261c0d5 into v1.14-branch Sep 25, 2019
@galak galak deleted the backport-18744-to-v1.14-branch branch February 12, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Kernel area: Timer Timer

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants