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)
commitb29cf66347df1b6b474b57e8fd9a49a24ebea2e8
tree87895cecab4db87b5db128cd91826f8421e440d1
parent6d0df694b3c6b3d597d270644aee14f36da266d6
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