]> git.baikalelectronics.ru Git - kernel.git/commit
irqdomain: Use hwirq_max instead of revmap_size for NOMAP domains
authorXu Qiang <xuqiang36@huawei.com>
Tue, 19 Jul 2022 06:36:41 +0000 (06:36 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Jul 2022 13:51:56 +0000 (14:51 +0100)
commitf69fc6ab42144957261d73944096d2bb02877e3a
treef97a6fceb73d4cf38a9ec17f5db4da8dbee91828
parent594c3b1e23e3c19850e3beeb2fe1e49bc67b6556
irqdomain: Use hwirq_max instead of revmap_size for NOMAP domains

NOMAP irq domains use the revmap_size field to indicate the maximum
hwirq number the domain accepts. This is a bit confusing as
revmap_size is usually used to indicate the size of the revmap array,
which a NOMAP domain doesn't have.

Instead, use the hwirq_max field which has the correct semantics, and
keep revmap_size to 0 for a NOMAP domain.

Signed-off-by: Xu Qiang <xuqiang36@huawei.com>
[maz: commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220719063641.56541-3-xuqiang36@huawei.com
kernel/irq/irqdomain.c