OSDN Git Service

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)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 7 Apr 2017 10:22:08 +0000 (11:22 +0100)
commit8f4137588261d7504f4aa022dc9d1a1fd1940e8e
treebbf139a97032e34c390335d74891fa9f381d4f0b
parent97da3854c526d3a6ee05c849c96e48d21527606c
arm64: Allow checking of a CPU-local erratum

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>
arch/arm64/kernel/cpufeature.c