zephyr/drivers/timer
Andy Ross 7cbdb6c5c0 drivers/timer: Restore non-tickless tick count behavior
The newer series of timer drivers will compare counters vs. the last
tick boundary to compute a number of ticks to announce to the kernel.
In the case of CONFIG_TICKLESS=n, this actually represents a change of
behavior from our old scheme where "ticks" always reflected the number
of interrupts received.

The distinction only matters when an interrupt is delayed more than a
full tick, of course.  But that actually makes a difference to some
timekeeping code.  Restore the old behavior.

This also has the benefit of further reducing code size when !TICKLESS
and improving performance of the ISR by removing the division
(remember Cortex M0 has no hardware divide!).

Fixes #12409

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-02-28 16:11:02 -08:00
..
altera_avalon_timer_hal.c include/system_timer.h: Timer API cleanup 2018-10-16 15:03:10 -04:00
arcv2_timer0.c include: misc: util.h: Rename min/max to MIN/MAX 2019-02-14 22:16:03 -05:00
CMakeLists.txt boards: remove pulpino board 2019-01-31 22:47:18 -05:00
cortex_m_systick.c include: misc: util.h: Rename min/max to MIN/MAX 2019-02-14 22:16:03 -05:00
hpet.c drivers/timer: Restore non-tickless tick count behavior 2019-02-28 16:11:02 -08:00
Kconfig drivers: timer: Fix broken dependency for nrf_rtc_timer 2019-02-07 16:14:00 -05:00
legacy_api.h kernel: New timeout implementation 2018-10-16 15:03:10 -04:00
loapic_timer.c drivers: Add 'U' to unsigned variable assignments 2018-12-04 22:51:56 -05:00
native_posix_timer.c kernel: expose k_busy_wait() to user mode 2018-11-15 16:20:36 -05:00
nrf_rtc_timer.c drivers/timer: Restore non-tickless tick count behavior 2019-02-28 16:11:02 -08:00
riscv_machine_timer.c drivers/timer: Restore non-tickless tick count behavior 2019-02-28 16:11:02 -08:00
rv32m1_lptmr_timer.c interrupt_controller: RV32M1: add intmux driver / DT bindings 2019-01-25 11:59:46 -05:00
sam0_rtc_timer.c include: misc: util.h: Rename min/max to MIN/MAX 2019-02-14 22:16:03 -05:00
sys_clock_init.c arch: allow system clock driver selection for cortex m 2019-02-05 18:43:03 -06:00
xtensa_sys_timer.c drivers/timer: Restore non-tickless tick count behavior 2019-02-28 16:11:02 -08:00