zephyr/tests/kernel
Peter Bigot 243ea2a1e1 tests/kernel/sleep: relax upper bound to support additional delays
Nordic platforms measure ticks in cycles of a 32 KiHz clock for which
the minimum compare delay is 2 ticks.  The test assumed an upper bound
of four ticks delay per loop iteration, resulting from alignment at
various layers.  This delay is met on Nordic for tick rates at or below
16384, but is too short for the default 32768 Hz tick rate.

Instrumentation confirms that the usleep test loop body on Nordic at 32
KiHz ticks takes 3 ticks as the optimum delay, only when a debug probe
is active.  In other circumstances it can take either 5 or 6 ticks,
depending on timer alignment and stability.

Relax the upper bound for platforms using this system timer at the
highest rate.

Closes #17965.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2019-08-23 14:43:31 +02:00
..
boot_page_table
common tests/kernel/common: Fix dead code in sflist test 2019-08-22 07:07:31 -04:00
context
critical
device
early_sleep
fatal tests: fatal: increase robustness 2019-08-19 15:38:51 -05:00
fifo
fp_sharing tests/kernel/fp_sharing: Fix static analysis warning 2019-08-22 07:07:31 -04:00
gen_isr_table
interrupt tests/kernel/interrupt: Add a simple dynamic interrupt test 2019-08-22 17:53:51 -04:00
lifo
mbox
mem_heap/mheap_api_concept
mem_pool
mem_protect sys_sem: add build time definition macros 2019-08-22 07:38:56 -05:00
mem_slab
mp
msgq/msgq_api
mutex tests: kernel: mutex: Require 32kB RAM when building with USERSPACE 2019-08-15 20:01:05 -05:00
obj_tracing
pending
pipe
poll
profiling/profiling_api
queue
sched tests/kernel/sched/schedule_api: Fix static analysis volatile warning 2019-08-21 15:53:50 +02:00
semaphore
sleep tests/kernel/sleep: relax upper bound to support additional delays 2019-08-23 14:43:31 +02:00
smp tests: enable hsdk and nsim_hs_smp for smp test 2019-08-11 21:18:38 +02:00
spinlock
stack
threads
tickless
timer
workq
xip