Skip to content

Commit a14e7fd

Browse files
jhovoldMarc Zyngier
authored andcommitted
x86/uv: Use irq_domain_create_hierarchy()
Use the irq_domain_create_hierarchy() helper to create the hierarchical domain, which both serves as documentation and avoids poking at irqdomain internals. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Hsin-Yi Wang <hsinyi@chromium.org> Tested-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230213104302.17307-14-johan+linaro@kernel.org
1 parent bc1bc1b commit a14e7fd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

arch/x86/platform/uv/uv_irq.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,9 @@ static struct irq_domain *uv_get_irq_domain(void)
166166
if (!fn)
167167
goto out;
168168

169-
uv_domain = irq_domain_create_tree(fn, &uv_domain_ops, NULL);
170-
if (uv_domain)
171-
uv_domain->parent = x86_vector_domain;
172-
else
169+
uv_domain = irq_domain_create_hierarchy(x86_vector_domain, 0, 0, fn,
170+
&uv_domain_ops, NULL);
171+
if (!uv_domain)
173172
irq_domain_free_fwnode(fn);
174173
out:
175174
mutex_unlock(&uv_lock);

0 commit comments

Comments
 (0)