arm64: cpufeatures: Check ICC_EL1_SRE.SRE before enabling ARM64_HAS_SYSREG_GIC_CPUIF
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 30 Sep 2015 10:50:04 +0000 (11:50 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Oct 2015 21:16:54 +0000 (22:16 +0100)
commit963fcd40958711cecf9e9a1a8525f88b782d6a98
treef4e6c437796fc63d7f5204baccd91dbb3af5c1b5
parent7cabd0086acd8f204d9b11a9b0aca90d6a9fcc5b
arm64: cpufeatures: Check ICC_EL1_SRE.SRE before enabling ARM64_HAS_SYSREG_GIC_CPUIF

As the firmware (or the hypervisor) may have disabled SRE access,
check that SRE can actually be enabled before declaring that we
do have that capability.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kernel/cpufeature.c