OSDN Git Service

irqdomain: Reimplement irq_linear_revmap() with irq_find_mapping()
authorMarc Zyngier <maz@kernel.org>
Fri, 2 Apr 2021 11:50:14 +0000 (12:50 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Jun 2021 12:09:17 +0000 (13:09 +0100)
commit1da027362a7db422243601e895e6f8288389f435
tree92f9cde4c1ce12875cb160b671463ca0d323ce88
parent405e94e9aed2a38bdcd22efe53c36c6cd53185a6
irqdomain: Reimplement irq_linear_revmap() with irq_find_mapping()

irq_linear_revmap() is supposed to be a fast path for domain
lookups, but it only exposes low-level details of the irqdomain
implementation, details which are better kept private.

The *overhead* between the two is only a function call and
a couple of tests, so it is likely that noone can show any
meaningful difference compared to the cost of taking an
interrupt.

Reimplement irq_linear_revmap() with irq_find_mapping()
in order to preserve source code compatibility, and
rename the internal field for a measure.

Signed-off-by: Marc Zyngier <maz@kernel.org>
include/linux/irqdomain.h
kernel/irq/irqdomain.c