zephyr/tests/kernel/early_sleep
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
..
src kernel: Improve tick <-> ms conversion. 2018-07-03 22:46:39 -04:00
CMakeLists.txt tests: kernel: Add a test to verify early sleep 2018-03-05 22:00:06 -05:00
prj.conf tests: kernel: Add a test to verify early sleep 2018-03-05 22:00:06 -05:00
testcase.yaml test: early_sleep: cleanup test 2018-05-28 08:52:46 -04:00