irqdomain: Move revmap_trees_mutex to struct irq_domain
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 5 Oct 2017 01:44:54 +0000 (10:44 +0900)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 19 Oct 2017 09:30:03 +0000 (10:30 +0100)
commitf1d783585486c7c612f277c2a6f0c9bb5a67e463
tree87895cecab4db87b5db128cd91826f8421e440d1
parentc94fb639d5462027004ed8f5f71288955688a4ae
irqdomain: Move revmap_trees_mutex to struct irq_domain

The revmap_trees_mutex protects domain->revmap_tree.  There is no
need to make it global because it is allowed to modify revmap_tree
of two different domains concurrently.  Having said that, this would
not be a actual bottleneck because the interrupt map/unmap does not
occur quite often.  Rather, the motivation is to tidy up the code
from a data structure point of view.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/irqdomain.h
kernel/irq/irqdomain.c