irqchip/gic-v3: Improve affinity helper
authorMarc Zyngier <maz@kernel.org>
Mon, 29 May 2023 15:21:42 +0000 (16:21 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 29 May 2023 15:58:07 +0000 (16:58 +0100)
commit3c65cbb7c5ebb4247968936899580c7f508ed223
tree797c0f944192bfe2e44cfc0325abbb645738c462
parentcddb536a73ef2c82ce04059dc61c65e85a355561
irqchip/gic-v3: Improve affinity helper

The GICv3 driver uses multiple formats for the affinity, all
derived from a reading of MPDR_EL1 on one CPU or another.

Simplify the handling of these affinity by moving the access
to the CPU affinity via cpu_logical_map() inside the helper,
and rename it accordingly.

This will be helpful to support some more broken hardware.

Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-gic-v3.c