]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v3: Add __gic_get_ppi_index() to find the PPI number from hwirq
authorJames Morse <james.morse@arm.com>
Thu, 29 Jul 2021 17:27:47 +0000 (17:27 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 12 Aug 2021 07:11:03 +0000 (08:11 +0100)
commit0c1cf59d79100b360f4052b5d5b9dbd5da7666e2
tree993a3f4b67517387f6865092edc3ef1ddcd3f8e6
parentce081bbfc21f6f738849857e74412a95b10e55c9
irqchip/gic-v3: Add __gic_get_ppi_index() to find the PPI number from hwirq

gic_get_ppi_index() is a useful concept for ppi partitions, as the GIC
has two PPI ranges but needs mapping to a single range when used as an
index in the gic_data.ppi_descs[] array.

Add a double-underscore version which takes just the intid. This will
be used in the partition domain select and translate helpers to enable
partition support for the EPPI range.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210729172748.28841-2-james.morse@arm.com
drivers/irqchip/irq-gic-v3.c