zephyr/drivers/timer
Ramakrishna Pallala 5f44309018 drivers: timer: nrf: Fix expected_sys_ticks issue in case of k_busy_wait
In case of tickless kernel, k_busy_wait() calls __enable_sys_clock()
which in turn calls _set_time() with maximum RTC counter programmable
value. This will set the expected_sys_ticks to maximum tick value even
though there is no explicit timeout is requested from the kernel or from
an application. In this scenario, if an app calls k_sleep() which in
turn calls _add_timeout() which will adjust timeout value as per the
elapsed program time which based on incorrectly set expected_sys_ticks.

To fix this issue, we should not set the expected_sys_ticks in case
of __enable_sys_clock() as it just requests to run the counter but
a timeout event request.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
2018-07-15 22:48:34 -04:00
..
altera_avalon_timer_hal.c drivers: timer: remove unkown jira ID 2018-03-26 13:13:04 -04:00
arcv2_timer0.c cleanup: rename fiber/task -> thread 2017-10-30 18:41:15 -04:00
CMakeLists.txt board: posix: add native_posix board definition 2017-12-27 14:16:08 -05:00
cortex_m_systick.c timer: cortex_m: Fix the discontinuous readings of the cycle counter. 2018-02-23 08:58:23 -06:00
hpet.c linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
Kconfig drivers: timer: Kconfig: Remove redundant 'default n' properties 2018-07-03 17:11:31 -04:00
loapic_timer.c kernel/drivers: fix compile warnings 2018-07-01 22:58:23 +02:00
native_posix_timer.c native: timer bugfix in tickless mode part 2018-02-08 15:56:48 -08:00
nrf_rtc_timer.c drivers: timer: nrf: Fix expected_sys_ticks issue in case of k_busy_wait 2018-07-15 22:48:34 -04:00
pulpino_timer.c Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00
riscv_machine_timer.c Convert remaining code to using newly introduced integer sized types 2017-04-21 11:38:23 -05:00
sys_clock_init.c drivers: timer: init earlier in boot sequence 2017-07-10 11:44:56 -07:00
xtensa_sys_timer.c esp32: update to ESP-IDF v3.0-dev-2648-gb2ff235b 2018-06-13 18:53:43 -04:00