zephyr/tests/kernel
Piotr Zięcik 91fe22ec7d kernel: Improve tick <-> ms conversion.
The kernel incorrectly assumed, that system timer frequency is always
divisible without remainder by couple "natural" tick rates (like 100).
As result on some SoCs, time calculations was not correct, producing
strange effects (invalid sleep times, incorrect k_uptime_get() etc.).

This commit enables accurate, but costly (using 64-bit math) tick <-> ms
conversion if the selected tick interval is not exact due to hardware
limitations.

Also, this commit fixes tests in which removed _ms_per_tick were used.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2018-07-03 22:46:39 -04:00
..
alert/alert_api tests: alert: improve test documentation 2018-05-23 18:58:03 -04:00
arm_irq_vector_table tests: Do not build arm_irq_vector_table .config's for ARC 2018-06-12 20:18:14 -04:00
arm_runtime_nmi doc: fix misspellings in test documentation 2018-05-23 15:27:19 -05:00
boot_page_table tests: classify tests 2018-04-09 22:55:20 -04:00
common tests/kernel/common: Add rigorous integer typing test 2018-05-23 19:40:07 -07:00
context tests: kernel context: rewrite test to use ztest correctly 2018-05-28 08:52:46 -04:00
critical tests: critical: fix naming and comments 2018-05-28 08:52:46 -04:00
device doc: process test documentation 2018-05-07 12:27:07 -04:00
early_sleep kernel: Improve tick <-> ms conversion. 2018-07-03 22:46:39 -04:00
errno tests: errno: document test functions 2018-04-30 17:15:29 -04:00
fatal tests: fix the bug of sentinel.conf 2018-06-08 16:37:22 -05:00
fifo tests: kernel: fifo_timeout: Do not potentially dereference NULL ptrs 2018-06-08 13:07:19 -05:00
fp_sharing tests: fp_sharing: Extract x86 configs to separate .conf 2018-06-25 12:49:42 -07:00
gen_isr_table tests: classify tests 2018-04-09 22:55:20 -04:00
init tests: Remove newline character 2018-05-23 12:59:12 -04:00
irq_offload tests: Remove newline character 2018-05-23 12:59:12 -04:00
lifo tests: lifo: improve test documentation 2018-05-23 18:58:03 -04:00
mbox tests: mbox_api: Fully initialize k_box_msg struct 2018-06-05 10:26:59 -04:00
mem_heap/mheap_api_concept doc: fix misspellings in test documentation 2018-05-23 15:27:19 -05:00
mem_pool samples, subsys, tests: Use ARRAY_SIZE() whenever possible 2018-06-14 19:12:51 -04:00
mem_protect tests: Fix sizing for several test for chips with 24KB of RAM 2018-06-25 19:34:33 +02:00
mem_slab tests/kernel/mem_slab: Fix memory overcommit for real 2018-06-02 16:24:47 -04:00
mp tests: kernel: style, tag, and category fixes 2018-04-25 14:18:15 +05:30
msgq/msgq_api tests: msgq: improve test documentation 2018-05-23 18:58:03 -04:00
mutex tests: Remove newline character 2018-05-23 12:59:12 -04:00
obj_tracing tests: obj_tracing: Enhance object counter logic 2018-06-14 23:54:31 -04:00
pending tests kernel pending: unitialized variable 2018-05-10 08:20:15 -07:00
pipe sanitycheck: fail on faults/panics/oopses 2018-06-07 18:01:49 -05:00
poll doc: tests: remove obsolete and bogus test groups 2018-05-18 01:48:31 +03:00
profiling/profiling_api tests: kernel: profiling: Fix _sys_soc_suspend logic 2018-06-01 08:57:59 -04:00
queue tests: Remove newline character 2018-05-23 12:59:12 -04:00
sched tests/sched/scheduler_api: samples/philosophers: Use SCHED_SCALABLE 2018-07-03 17:09:15 -04:00
semaphore tests: semaphore: improve test documentation 2018-05-23 18:58:03 -04:00
sleep tests/kernel: Bump stack sizes for a few tests on qemu_x86 2018-05-19 07:00:55 +03:00
smp tests/kernel/smp: Properly synchronize CPU counters at test start 2018-05-31 14:02:03 -04:00
spinlock tests: Remove newline character 2018-05-23 12:59:12 -04:00
stack tests: stack: improve test documentation 2018-05-23 18:58:03 -04:00
static_idt tests: Remove newline character 2018-05-23 12:59:12 -04:00
threads tests/kernel: Add a test for CONFIG_MULTITHREADING=n 2018-06-13 17:23:05 -04:00
tickless doc: tests: remove obsolete and bogus test groups 2018-05-18 01:48:31 +03:00
timer tests: kernel: timer: timer_api: Remove nonexistent config option 2018-05-23 17:57:06 -04:00
workq tests: workqueue: fix doxygen group 2018-05-31 14:05:38 -04:00
xip tests: rename main test to main.c 2018-05-07 12:27:07 -04:00