arm64: Allow checking of a CPU-local erratum
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 30 Jan 2017 15:39:52 +0000 (15:39 +0000)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:46:11 +0000 (18:46 +0800)
commit9a820d393971bb45a4c104294be30919d53ec322
tree14677344a7668aa7db5bf40230179096c53f48d3
parent56e4e1a7a92849039c7ef54a2d34de47f736ba98
arm64: Allow checking of a CPU-local erratum

commit 8f4137588261d7504f4aa022dc9d1a1fd1940e8e upstream.

this_cpu_has_cap() only checks the feature array, and not the errata
one. In order to be able to check for a CPU-local erratum, allow it
to inspect the latter as well.

This is consistent with cpus_have_cap()'s behaviour, which includes
errata already.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kernel/cpufeature.c