zephyr/kernel
Andy Ross 7617371ecc kernel/timeout: Clamp ticks argument to lower bound
Our funny convention holds that passing ticks==1 to _add_timeout()
means "at the next tick".  But that means that 1, 0, and all negative
numbers are expected to behave the same.  In ticked mode, that's fine
because it will, after all, expire at the next tick.

But in tickless, the next announcement may be for several ticks, and
that zero will appear to expire "before" the next tick in the
consumption loop.

Make sure all "next tick" expirations look the same.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-10-16 15:03:10 -04:00
..
include kernel: Checkpatch fixups 2018-10-16 15:03:10 -04:00
alert.c
atomic_c.c
CMakeLists.txt kernel: New timeout implementation 2018-10-16 15:03:10 -04:00
compiler_stack_protect.c
device.c
errno.c
idle.c kernel/sys_clock: Fix build when !SYS_CLOCK_EXISTS 2018-10-16 15:03:10 -04:00
init.c kernel: move to new logger 2018-10-08 17:49:12 -04:00
int_latency_bench.c
Kconfig kernel/kconfig: Move TICKLESS options out of power management tree 2018-10-16 15:03:10 -04:00
Kconfig.power_mgmt kernel/kconfig: Move TICKLESS options out of power management tree 2018-10-16 15:03:10 -04:00
mailbox.c kernel: Sanitize if else statement according with MISRA-C 2018-09-28 07:58:19 +05:30
mem_domain.c
mem_slab.c
mempool.c sys_clock: Fix unsafe tick count usage 2018-10-16 15:03:10 -04:00
msg_q.c
mutex.c
pipes.c
poll.c kernel: Fix overflow test problem introduced in 92ea2f9 2018-10-04 05:20:29 -07:00
queue.c
sched.c kernel/sched: Fix timeslicing predicate 2018-10-16 15:03:10 -04:00
sem.c
smp.c
stack.c
system_work_q.c
thread_abort.c
thread.c kernel/timeout: Eliminate wait_q parameters from API 2018-10-16 15:03:10 -04:00
timeout.c kernel/timeout: Clamp ticks argument to lower bound 2018-10-16 15:03:10 -04:00
timer.c kernel: New timeout implementation 2018-10-16 15:03:10 -04:00
userspace_handler.c
userspace.c kernel: move to new logger 2018-10-08 17:49:12 -04:00
version.c
work_q.c kernel/timeout: Refactor API 2018-10-16 15:03:10 -04:00