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é <[email protected]> Tested-by: Hsin-Yi Wang <[email protected]> Tested-by: Mark-PK Tsai <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent bc1bc1b commit a14e7fd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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)