zephyr/kernel
Andrzej Głąbek 59b21a29aa kernel: timeout: Fix adding of an absolute timeout
Correct the way the relative ticks value is calculated for an absolute
timeout. Previously, elapsed() was called twice and the returned value
was first subtracted from and then added to the ticks value. It could
happen that the HW counter value read by elapsed() changed between the
two calls to this function. This caused the test_timeout_abs test case
from the timer_api test suite to occasionally fail, e.g. on certain nRF
platforms.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2021-05-24 23:53:18 -04:00
..
include kernel/sched: Remove "cooperative scheduling only" special cases 2021-05-24 23:38:16 -04:00
paging
atomic_c.c
banner.c
cache_handlers.c
CMakeLists.txt
compiler_stack_protect.c
condvar.c
device.c kernel/device: add arg checking in z_device_ready() 2021-05-18 11:29:46 -05:00
errno.c
fatal.c
futex.c
idle.c kernel/sched: Remove "cooperative scheduling only" special cases 2021-05-24 23:38:16 -04:00
init.c kernel/sched: Remove "cooperative scheduling only" special cases 2021-05-24 23:38:16 -04:00
Kconfig kernel/sched: Remove "cooperative scheduling only" special cases 2021-05-24 23:38:16 -04:00
kheap.c
mailbox.c
mem_domain.c
mem_slab.c
mempool.c
mmu.c
msg_q.c
mutex.c
pipes.c
poll.c
queue.c
sched.c kernel/sched: Remove "cooperative scheduling only" special cases 2021-05-24 23:38:16 -04:00
sem.c
smp.c
stack.c
system_work_q.c
thread.c
timeout.c kernel: timeout: Fix adding of an absolute timeout 2021-05-24 23:53:18 -04:00
timer.c
userspace_handler.c
userspace.c userspace: remove dead code 2021-05-24 22:35:03 -04:00
version.c
work.c kernel: work: fix race condition with cancel before work runs 2021-05-18 15:02:08 +02:00
xip.c