Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, mpparse, irq: Provide basic irqdomain support

Enhance mpparse to provide basic support of irqdomain.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1402302011-23642-27-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Jiang Liu and committed by
Thomas Gleixner
74501edc ca7e28aa

+9 -1
+9 -1
arch/x86/kernel/mpparse.c
··· 19 19 #include <linux/module.h> 20 20 #include <linux/smp.h> 21 21 #include <linux/pci.h> 22 + #include <linux/irqdomain.h> 22 23 23 24 #include <asm/mtrr.h> 24 25 #include <asm/mpspec.h> ··· 113 112 pr_warn("Unknown bustype %s - ignoring\n", str); 114 113 } 115 114 115 + static struct irq_domain_ops mp_ioapic_irqdomain_ops; 116 + 116 117 static void __init MP_ioapic_info(struct mpc_ioapic *m) 117 118 { 119 + struct ioapic_domain_cfg cfg = { 120 + .type = IOAPIC_DOMAIN_LEGACY, 121 + .ops = &mp_ioapic_irqdomain_ops, 122 + }; 123 + 118 124 if (m->flags & MPC_APIC_USABLE) 119 - mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, NULL); 125 + mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); 120 126 } 121 127 122 128 static void __init print_mp_irq_info(struct mpc_intsrc *mp_irq)