zephyr/drivers/timer
Jerzy Kasenberg bd6bb64d8a drivers: timer: smartbond: Fix timer2 timeout set
When function sys_clock_set_timout() is called with small value
(i.e. 1) calculated time to be programmed to TIMER2 reload
register may be such that is expires before code set's it
up. In that case timer interrupt will be scheduled in far
future.

With this change, code checks after it sets reload value if
requested time already passed and if so TIMER2 interrupt
is marked as pending to avoid races.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
2024-05-24 08:04:18 -04:00
..
altera_avalon_timer_hal.c
ambiq_stimer.c
apic_timer.c
apic_tsc.c drivers: apic_tsc: Use toolchain cpuid() 2024-05-17 09:30:27 +02:00
arcv2_timer0.c
arm_arch_timer.c
cc13xx_cc26xx_rtc_timer.c
CMakeLists.txt
cortex_m_systick.c
esp32_sys_timer.c
gecko_burtc_timer.c
hpet.c
intel_adsp_timer.c
ite_it8xxx2_timer.c
Kconfig
Kconfig.altera_avalon
Kconfig.ambiq
Kconfig.arcv2
Kconfig.arm_arch
Kconfig.cavs
Kconfig.cc13xx_cc26xx_rtc
Kconfig.cortex_m_systick
Kconfig.esp32
Kconfig.gecko
Kconfig.ite_it8xxx2
Kconfig.leon_gptimer
Kconfig.litex
Kconfig.mchp_xec_rtos
Kconfig.mcux_gpt
Kconfig.mcux_lptmr
Kconfig.mcux_os
Kconfig.mips_cp0
Kconfig.native_posix
Kconfig.npcx_itim
Kconfig.nrf_grtc
Kconfig.nrf_rtc
Kconfig.nrf_xrtc
Kconfig.rcar_cmt
Kconfig.riscv_machine
Kconfig.rv32m1_lptmr
Kconfig.sam0_rtc
Kconfig.smartbond
Kconfig.stm32_lptim
Kconfig.x86
Kconfig.xlnx_psttc
Kconfig.xtensa
leon_gptimer.c
litex_timer.c
mchp_xec_rtos_timer.c
mcux_gpt_timer.c
mcux_lptmr_timer.c
mcux_os_timer.c
mips_cp0_timer.c
native_posix_timer.c
npcx_itim_timer.c
nrf_grtc_timer.c drivers: timer: nrf_grtc_timer: Fix for random system hangs 2024-05-24 07:47:29 -04:00
nrf_rtc_timer.c
rcar_cmt_timer.c
riscv_machine_timer.c
rv32m1_lptmr_timer.c
sam0_rtc_timer.c
smartbond_timer.c drivers: timer: smartbond: Fix timer2 timeout set 2024-05-24 08:04:18 -04:00
stm32_lptim_timer.c
sys_clock_init.c
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c
xtensa_sys_timer.c