zephyr/kernel
Peter Mitsis a3e5af95de kernel: Update k_sleep() and k_usleep() return values
Updates both the k_sleep() and k_usleep() return values so that if
the thread was woken up prematurely, they will return the time left
to sleep rounded up to the nearest millisecond (for k_sleep) or
microsecond (for k_usleep) instead of rounding down. This removes
ambiguity should there be a non-zero number of remaining ticks
that correlate to a time of less than 1 millisecond or 1 microsecond.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2023-12-07 10:41:00 +00:00
..
include doc: fixed already renamed _Cstart to z_cstart 2023-11-30 21:01:47 -05:00
paging kernel: mm: only include demand_paging.h if needed 2023-11-23 10:01:45 +01:00
CMakeLists.txt
Kconfig device: support for mutable devices 2023-11-28 15:35:39 +01:00
Kconfig.vm
atomic_c.c
banner.c
busy_wait.c kernel: Use k_us_to_cyc_ceil32 in k_busy_wait 2023-12-05 09:24:28 +01:00
compiler_stack_protect.c
condvar.c
device.c
dynamic.c
dynamic_disabled.c
errno.c
events.c
fatal.c
futex.c
idle.c
init.c
kheap.c
mailbox.c
main_weak.c
mem_domain.c
mem_slab.c
mempool.c
mmu.c kernel: mmu: Fix static analysis issue 2023-11-28 16:44:16 -05:00
msg_q.c
mutex.c llext: export some symbols 2023-12-01 10:08:12 -05:00
obj_core.c
pipes.c
poll.c
queue.c
sched.c kernel: Update k_sleep() and k_usleep() return values 2023-12-07 10:41:00 +00:00
sem.c
smp.c
stack.c
system_work_q.c
thread.c llext: export some symbols 2023-12-01 10:08:12 -05:00
timeout.c kernel: timeout: fix issue with z_timeout_expires 2023-11-30 12:22:54 +01:00
timer.c
usage.c
userspace.c
userspace_handler.c
version.c
work.c
xip.c