zephyr/kernel
Peter Bigot a6067a38f8 kernel: reimplement k_uptime_get_32()
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 <peter.bigot@nordicsemi.no>
2019-09-03 22:50:41 +02:00
..
include kernel/mutex: Fix locking to be SMP-safe 2019-08-22 17:58:16 -04:00
CMakeLists.txt kernel: consolidate error handling code 2019-07-25 15:06:58 -07:00
Kconfig tests: increase main stack size for x86 with ztest 2019-08-05 13:25:50 +02:00
Kconfig.power_mgmt
atomic_c.c
compiler_stack_protect.c kernel: consolidate error handling code 2019-07-25 15:06:58 -07:00
device.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
errno.c
fatal.c kernel: ignore z_fatal_halt() from code coverage 2019-08-24 23:40:22 +02:00
futex.c kernel: delete k_futex_init() 2019-07-01 08:15:10 -07:00
idle.c
init.c linker: Add dtcm section for Cortex M7 MCUs 2019-07-19 10:05:46 +02:00
mailbox.c cleanup: include/: move misc/dlist.h to sys/dlist.h 2019-06-27 22:55:49 -04:00
mem_domain.c userspace: adjust arch memory domain interface 2019-08-05 13:25:50 +02:00
mem_slab.c cleanup: include/: move misc/dlist.h to sys/dlist.h 2019-06-27 22:55:49 -04:00
mempool.c malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
msg_q.c kernel: msgq: avoid single char variables for msgq 2019-07-04 10:04:27 -04:00
mutex.c kernel/mutex: Fix locking to be SMP-safe 2019-08-22 17:58:16 -04:00
pipes.c cleanup: include/: move misc/dlist.h to sys/dlist.h 2019-06-27 22:55:49 -04:00
poll.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
queue.c cleanup: include/: move misc/sflist.h to sys/sflist.h 2019-06-27 22:55:49 -04:00
sched.c kernel/mutex: Fix locking to be SMP-safe 2019-08-22 17:58:16 -04:00
sem.c cleanup: include/: move misc/dlist.h to sys/dlist.h 2019-06-27 22:55:49 -04:00
smp.c
stack.c
system_work_q.c
thread.c userspace: set stack object earlier 2019-08-05 13:25:50 +02:00
thread_abort.c
timeout.c kernel: reimplement k_uptime_get_32() 2019-09-03 22:50:41 +02:00
timer.c
userspace.c cleanup: include/: move misc/rb.h to sys/rb.h 2019-06-27 22:55:49 -04:00
userspace_handler.c
version.c
work_q.c