Messages in this thread Patch in this message | | | From | Johan Hovold <> | Subject | [PATCH v2 4/4] irqdomain: use per-domain mutex for associations | Date | Thu, 1 Sep 2022 16:28:16 +0200 |
| |
Use the new per-domain map mutex instead of the global domain mutex for associations, something which may potentially speed up parallel probing somewhat.
Note that the global domain mutex is still used for hierarchical domains.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org> --- kernel/irq/irqdomain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 9f3203e180c5..7009ef30c09e 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -611,9 +611,9 @@ int irq_domain_associate(struct irq_domain *domain, unsigned int virq, { int ret; - mutex_lock(&irq_domain_mutex); + mutex_lock(&domain->map_mutex); ret = __irq_domain_associate(domain, virq, hwirq); - mutex_unlock(&irq_domain_mutex); + mutex_unlock(&domain->map_mutex); return ret; } @@ -695,7 +695,7 @@ static unsigned int __irq_create_mapping_affinity(struct irq_domain *domain, return 0; } - if (irq_domain_associate(domain, virq, hwirq)) { + if (__irq_domain_associate(domain, virq, hwirq)) { irq_free_desc(virq); return 0; } -- 2.35.1
| |