commit | 3c7f990367f38c84b20e7888042ea9429cfae8a6 | [log] [tgz] |
---|---|---|
author | Piotr Zięcik <piotr.ziecik@nordicsemi.no> | Mon Jul 23 14:09:10 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Aug 14 07:18:44 2018 -0700 |
tree | f9560d8db0829de30e48951f2027e6d0a9a73d0a | |
parent | 2a26576b03a8486bbcc839ea02b66631b8fc61ef [diff] |
kernel: Do not use sys_clock_ticks_per_sec in _ms_to_ticks() The value of sys_clock_ticks_per_sec is obtained using simple integer division with rounding toward zero. As result using this variable in _ms_to_ticks() introduces some error. This commit eliminates sys_clock_ticks_per_sec from equation used in _ms_to_ticks() removing introduced error. Also, this commit fixes #8895. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>