Commit 9d35f859 authored by Thomas Gleixner's avatar Thomas Gleixner

x86/vector: Create named irq domain

Use the fwnode to create a named domain so diagnosis works.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20170619235443.673635238@linutronix.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent d59f6617
...@@ -429,11 +429,16 @@ static void init_legacy_irqs(void) { } ...@@ -429,11 +429,16 @@ static void init_legacy_irqs(void) { }
int __init arch_early_irq_init(void) int __init arch_early_irq_init(void)
{ {
struct fwnode_handle *fn;
init_legacy_irqs(); init_legacy_irqs();
x86_vector_domain = irq_domain_add_tree(NULL, &x86_vector_domain_ops, fn = irq_domain_alloc_named_fwnode("VECTOR");
BUG_ON(!fn);
x86_vector_domain = irq_domain_create_tree(fn, &x86_vector_domain_ops,
NULL); NULL);
BUG_ON(x86_vector_domain == NULL); BUG_ON(x86_vector_domain == NULL);
irq_domain_free_fwnode(fn);
irq_set_default_host(x86_vector_domain); irq_set_default_host(x86_vector_domain);
arch_init_msi_domain(x86_vector_domain); arch_init_msi_domain(x86_vector_domain);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment