In some circumstances (e.g., a tickless kernel), k_timer_remaining_get() would not account for time passed that didn't involve clock interrupts. This adds a simple fix for that, and adds a test case. In addition, the return value of k_timer_remaining_get() is clamped at 0 in the case of overdue timers and the API description is adjusted to reflect this. Fixes: #13353 Signed-off-by: Charles E. Youse <charles.youse@intel.com>
10 lines
197 B
YAML
10 lines
197 B
YAML
common:
|
|
arch_exclude: x86_64
|
|
tests:
|
|
kernel.timer:
|
|
tags: kernel
|
|
kernel.timer.tickless:
|
|
extra_args: CONF_FILE="prj_tickless.conf"
|
|
arch_exclude: riscv32 nios2 posix
|
|
tags: kernel
|