arm64: arch_timer: Add infrastructure for multiple erratum detection methods
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 6 Apr 2022 16:45:17 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2022 05:52:14 +0000 (07:52 +0200)
commitf4a88eb6b1785a3489c157d76b05aa74b407979b
tree5c905430d5514d383177f9da77ae5075e4d26415
parent7a48b35f0cd3174ef1654005c6e991a2c625f0d9
arm64: arch_timer: Add infrastructure for multiple erratum detection methods

commit 651bb2e9dca6e6dbad3fba5f6e6086a23575b8b5 upstream.

We're currently stuck with DT when it comes to handling errata, which
is pretty restrictive. In order to make things more flexible, let's
introduce an infrastructure that could support alternative discovery
methods. No change in functionality.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
[ morse: Removed the changes to HiSilicon erratum 161010101, which isn't
  present in v4.9 ]
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/arch_timer.h
drivers/clocksource/arm_arch_timer.c