ca0951d42d
The nRF RTC driver, which is used a system clock driver due to the lack of SysTick hardware on the SoC, was using too much CPU time in its _timer_idle_exit() implementation due to the use of 64-bit arithmetical operations. This was causing the ISR wrapper to add excessive latency to critical interrupts, causing BLE controller asserts. This patch addresses the issue by using exclusively RTC ticks instead of OS ticks, thus avoiding the necessity to convert during _timer_idle_exit() calls, which are the most critical to interrupt latency. In addition the driver is now able to detect setting tick events in the past due to it being interrupted by a higher priority context, and will reschedule and trigger the ISR at the same time. Change-id: I56a3be96b9fdd554c3650012d647af2f0415eb8a Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no> Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
altera_avalon_timer.c | ||
arcv2_timer0.c | ||
cortex_m_systick.c | ||
cortex_m_systick_gdb.S | ||
hpet.c | ||
loapic_timer.c | ||
nrf_rtc_timer.c | ||
sys_clock_init.c |