]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
irqchip/gic: Restore CPU interface checking
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Apr 2016 11:25:33 +0000 (12:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 14:14:00 +0000 (15:14 +0100)
commit25fc11aead380501d70b701e136e89d321277177
treebef589bd1d1ab792413247e6752040f74226ab83
parente3661b128e53ee281e1e7c589a5b647890bd6d7c
irqchip/gic: Restore CPU interface checking

When introducing the whole CPU feature detection framework,
we lost the capability to detect a mismatched GIC configuration
(using the GICv2 MMIO interface, but having the system register
interface enabled).

In order to solve this, use the new this_cpu_has_cap() helper.
Also move the check to the CPU interface path in order to catch
systems where the first CPU has been correctly configured,
but the secondaries are not.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/irqchip/irq-gic.c