]> git.baikalelectronics.ru Git - 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)
commit46a1aa911b1d0b7f209c62af1b6ec23b74e6370f
treebef589bd1d1ab792413247e6752040f74226ab83
parent731a5b9c4d2cb9678285ba5b720ad66fc2d8bc75
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