aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/acpi/boot.c2
-rw-r--r--arch/x86/kernel/mpparse_32.c7
-rw-r--r--arch/x86/kernel/mpparse_64.c7
-rw-r--r--include/asm-x86/io_apic.h7
4 files changed, 11 insertions, 12 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index b33ebf6ea4f1..9cf575184536 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -320,6 +320,8 @@ acpi_parse_lapic_nmi(struct acpi_subtable_header * header, const unsigned long e
320 320
321#ifdef CONFIG_X86_IO_APIC 321#ifdef CONFIG_X86_IO_APIC
322 322
323struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
324
323static int __init 325static int __init
324acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned long end) 326acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned long end)
325{ 327{
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index 302253cbfc6a..b6f1e4e235e3 100644
--- a/arch/x86/kernel/mpparse_32.c
+++ b/arch/x86/kernel/mpparse_32.c
@@ -837,12 +837,7 @@ void __cpuinit mp_register_lapic (int id, u8 enabled)
837#define MP_ISA_BUS 0 837#define MP_ISA_BUS 0
838#define MP_MAX_IOAPIC_PIN 127 838#define MP_MAX_IOAPIC_PIN 127
839 839
840static struct mp_ioapic_routing { 840extern struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
841 int apic_id;
842 int gsi_base;
843 int gsi_end;
844 u32 pin_programmed[4];
845} mp_ioapic_routing[MAX_IO_APICS];
846 841
847static int mp_find_ioapic (int gsi) 842static int mp_find_ioapic (int gsi)
848{ 843{
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c
index f1015bf53cf0..813057cb2ddb 100644
--- a/arch/x86/kernel/mpparse_64.c
+++ b/arch/x86/kernel/mpparse_64.c
@@ -630,12 +630,7 @@ void __cpuinit mp_register_lapic(int id, u8 enabled)
630#define MP_ISA_BUS 0 630#define MP_ISA_BUS 0
631#define MP_MAX_IOAPIC_PIN 127 631#define MP_MAX_IOAPIC_PIN 127
632 632
633static struct mp_ioapic_routing { 633extern struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
634 int apic_id;
635 int gsi_base;
636 int gsi_end;
637 u32 pin_programmed[4];
638} mp_ioapic_routing[MAX_IO_APICS];
639 634
640static int mp_find_ioapic(int gsi) 635static int mp_find_ioapic(int gsi)
641{ 636{
diff --git a/include/asm-x86/io_apic.h b/include/asm-x86/io_apic.h
index 095e8e30a345..0c9e17c73e05 100644
--- a/include/asm-x86/io_apic.h
+++ b/include/asm-x86/io_apic.h
@@ -110,6 +110,13 @@ extern int nr_ioapic_registers[MAX_IO_APICS];
110 * MP-BIOS irq configuration table structures: 110 * MP-BIOS irq configuration table structures:
111 */ 111 */
112 112
113struct mp_ioapic_routing {
114 int apic_id;
115 int gsi_base;
116 int gsi_end;
117 u32 pin_programmed[4];
118};
119
113/* I/O APIC entries */ 120/* I/O APIC entries */
114extern struct mpc_config_ioapic mp_ioapics[MAX_IO_APICS]; 121extern struct mpc_config_ioapic mp_ioapics[MAX_IO_APICS];
115 122