zephyr/kernel
Andy Ross a343cf9480 kernel/timer: Handle K_FOREVER in k_timer_start()
The possibility of passing K_FOREVER as the initial duration argument
to k_timer_start() wasn't being handled, with the result that the
computed value became an zero timeout (effecitvely treating it as
K_NO_WAIT and firing at the next tick).

This is obviously pathlogical, but it should still do what the code
says it should and wait forever.

Make k_timer_start(..., K_FOREVER, ...) a noop.

Fixes #25820

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2020-05-29 19:59:14 +02:00
..
include kernel: simplify dummy thread implementation 2020-05-13 21:23:52 +02:00
atomic_c.c
CMakeLists.txt
compiler_stack_protect.c
device.c device_pm: correct nop documented behavior 2020-05-21 20:32:12 +02:00
errno.c
fatal.c
futex.c
idle.c
init.c kernel: simplify dummy thread implementation 2020-05-13 21:23:52 +02:00
Kconfig
Kconfig.power_mgmt
kheap.c
mailbox.c
mem_domain.c
mem_slab.c
mempool_sys.c
mempool.c
msg_q.c
mutex.c kernek: don't allow mutex ops in ISRs 2020-05-28 01:38:05 +02:00
pipes.c
poll.c
queue.c
sched.c
sem.c
smp.c kernel: simplify dummy thread implementation 2020-05-13 21:23:52 +02:00
stack.c
system_work_q.c
thread_abort.c
thread.c kernel: wipe TLS before dropping to user mode 2020-05-13 22:02:48 +02:00
timeout.c
timer.c kernel/timer: Handle K_FOREVER in k_timer_start() 2020-05-29 19:59:14 +02:00
userspace_handler.c
userspace.c
version.c
work_q.c