diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-06-09 04:19:55 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-06-21 17:05:43 -0400 |
commit | 74501edcd846830bec86bfa06c47c25083e70ffc (patch) | |
tree | e5e72a82a7751fb31657acd28ddda147c99884c2 /arch/x86/kernel/mpparse.c | |
parent | ca7e28aa4ff34fdd6622d915682b2765453c5ddd (diff) |
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>
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index ea8595e4cbd5..13c8e1f864fc 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/smp.h> | 20 | #include <linux/smp.h> |
21 | #include <linux/pci.h> | 21 | #include <linux/pci.h> |
22 | #include <linux/irqdomain.h> | ||
22 | 23 | ||
23 | #include <asm/mtrr.h> | 24 | #include <asm/mtrr.h> |
24 | #include <asm/mpspec.h> | 25 | #include <asm/mpspec.h> |
@@ -112,10 +113,17 @@ static void __init MP_bus_info(struct mpc_bus *m) | |||
112 | pr_warn("Unknown bustype %s - ignoring\n", str); | 113 | pr_warn("Unknown bustype %s - ignoring\n", str); |
113 | } | 114 | } |
114 | 115 | ||
116 | static struct irq_domain_ops mp_ioapic_irqdomain_ops; | ||
117 | |||
115 | static void __init MP_ioapic_info(struct mpc_ioapic *m) | 118 | static void __init MP_ioapic_info(struct mpc_ioapic *m) |
116 | { | 119 | { |
120 | struct ioapic_domain_cfg cfg = { | ||
121 | .type = IOAPIC_DOMAIN_LEGACY, | ||
122 | .ops = &mp_ioapic_irqdomain_ops, | ||
123 | }; | ||
124 | |||
117 | if (m->flags & MPC_APIC_USABLE) | 125 | if (m->flags & MPC_APIC_USABLE) |
118 | mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, NULL); | 126 | mp_register_ioapic(m->apicid, m->apicaddr, gsi_top, &cfg); |
119 | } | 127 | } |
120 | 128 | ||
121 | static void __init print_mp_irq_info(struct mpc_intsrc *mp_irq) | 129 | static void __init print_mp_irq_info(struct mpc_intsrc *mp_irq) |