]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Oct 2021 12:42:15 +0000 (13:42 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 17 Oct 2021 19:47:21 +0000 (21:47 +0200)
commitf938b7ece81a577caea73d81250062c638b6c3da
tree3606f26069bb8ce60c9fa1f783506e107a5f12da
parent8631c288b608a87ba4c7247621106e67c62234c4
clocksource/drivers/arm_arch_timer: Move MMIO timer programming over to CVAL

Similarily to the sysreg-based timer, move the MMIO over to using
the CVAL registers instead of TVAL. Note that there is no warranty
that the 64bit MMIO access will be atomic, but the timer is always
disabled at the point where we program CVAL.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211017124225.3018098-8-maz@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/arm/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c