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 arch/x86: move arch/x86/include/mmustructs.h to ia32/mmustructs.h 2019-07-03 20:01:17 -04:00
common tests/kernel/common: Fix dead code in sflist test 2019-08-22 07:07:31 -04:00
context timer: Add Xilinx ZynqMP PS ttc timer 2019-08-09 22:50:50 +02:00
critical tests: kernel: critical: alternative test-case for SAM SoCs with WDT 2019-07-11 11:26:01 -05:00
device tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
early_sleep tests/kernel/early_sleep: Fix for fast ticks 2019-07-02 22:52:29 -04:00
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 riscv32: rename to riscv 2019-08-02 13:54:48 -07:00
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 malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
mem_pool riscv32: rename to riscv 2019-08-02 13:54:48 -07:00
mem_protect sys_sem: add build time definition macros 2019-08-22 07:38:56 -05:00
mem_slab
mp
msgq/msgq_api test/msgq: adjust overflow test for 64-bit targets 2019-07-04 07:22:43 -04:00
mutex tests: kernel: mutex: Require 32kB RAM when building with USERSPACE 2019-08-15 20:01:05 -05:00
obj_tracing
pending
pipe tests: clean up fatal error handlers 2019-08-06 19:32:22 -07:00
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 tests: clean up fatal error handlers 2019-08-06 19:32:22 -07:00
tickless boards: remove quarl_se_c1000 2019-07-29 21:30:25 -07:00
timer
workq tests: work_queue_api: Fix k_delayed_work_remaining_get() test 2019-07-23 13:54:39 +02:00
xip