]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
UBUNTU: SAUCE: arm64: arch_timer: Workaround for Cortex-A73 erratum 858921
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Jan 2017 12:52:31 +0000 (12:52 +0000)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:17:54 +0000 (14:17 -0600)
commit47f291e20037b738a8bce0e6d4cf5b381fb4a9db
tree03a210c70de643407399a3432e949560a9cad866
parent65e20079188d07e479afaf4055ecfef391720f3f
UBUNTU: SAUCE: arm64: arch_timer: Workaround for Cortex-A73 erratum 858921

BugLink: https://bugs.launchpad.net/bugs/1675509
Cortex-A73 (all versions) counter read can return a wrong value
when the counter crosses a 32bit boundary.

The workaround involves performing the read twice, and to return
one or the other depending on whether a transition has taken place.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit 7b1f8a2afb42458f5878060aec51ad9c28cbf653
 in the timers/errata-rework branch of
 git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/clocksource/Kconfig
drivers/clocksource/arm_arch_timer.c