commit | 3d29c9fe546cd42554becee9dddcbe2e9e73d5cc | [log] [tgz] |
---|---|---|
author | Qipeng Zha <qipeng.zha@intel.com> | Tue Nov 28 12:17:42 2023 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Nov 30 12:22:54 2023 +0100 |
tree | 1c9718845b255d64be332e371c5f320c70ae0fcc | |
parent | de1bfd6a6eeb9973c702a12e586e287da156b849 [diff] |
kernel: timeout: fix issue with z_timeout_expires - issue found with Ztest case of test_thread_timeout_remaining_expires on Intel ISH platform when adjust CONFIG_SYS_CLOCK_TICKS_PER_SEC to 10k. - timeout_rem() return exact remaining ticks which is calibrated by decrease elapsed(), while z_timeout_expires try to get expire ticks to be timeout using current tick as base, so need get exact current ticks by plus elasped(). Signed-off-by: Qipeng Zha <qipeng.zha@intel.com>