arm: timer: factor out FSL arch timer erratum workaround
authorAndre Przywara <[email protected]>
Wed, 27 Jun 2018 00:42:52 +0000 (01:42 +0100)
committerJagan Teki <[email protected]>
Tue, 3 Jul 2018 16:29:46 +0000 (21:59 +0530)
commit38651588d3d9a977ca457049d6357408ddad4a8b
tree7db5ddddfb993a285052604c8058c229a59a4097
parent76d69eb01dee492f5ecf43c43d7301fec6c5b99f
arm: timer: factor out FSL arch timer erratum workaround

At the moment we have the workaround for the Freescale arch timer
erratum A-008585 merged into the generic timer_read_counter() routine.
Split those two up, so that we can add other errata workaround more
easily. Also add an explaining comment on the way.

Signed-off-by: Andre Przywara <[email protected]>
Tested-by: Jagan Teki <[email protected]>
Tested-by: Andreas Färber <[email protected]>
Tested-by: Guillaume Gardet <[email protected]>
arch/arm/cpu/armv8/generic_timer.c