]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: move mp_ioapic_routing to boot.c
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Fri, 4 Apr 2008 19:41:26 +0000 (23:41 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:35 +0000 (17:41 +0200)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/mpparse_32.c
arch/x86/kernel/mpparse_64.c
include/asm-x86/io_apic.h

index b33ebf6ea4f13902281dc2e934a47758f125b2f2..9cf5751845368198f8f5dfda46de0a8132e6c191 100644 (file)
@@ -320,6 +320,8 @@ acpi_parse_lapic_nmi(struct acpi_subtable_header * header, const unsigned long e
 
 #ifdef CONFIG_X86_IO_APIC
 
+struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
+
 static int __init
 acpi_parse_ioapic(struct acpi_subtable_header * header, const unsigned long end)
 {
index 302253cbfc6a7090659c57302c2f60777da0c153..b6f1e4e235e314cb8ebc3854ed5795a5f1dcb4a4 100644 (file)
@@ -837,12 +837,7 @@ void __cpuinit mp_register_lapic (int id, u8 enabled)
 #define MP_ISA_BUS             0
 #define MP_MAX_IOAPIC_PIN      127
 
-static struct mp_ioapic_routing {
-       int                     apic_id;
-       int                     gsi_base;
-       int                     gsi_end;
-       u32                     pin_programmed[4];
-} mp_ioapic_routing[MAX_IO_APICS];
+extern struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
 
 static int mp_find_ioapic (int gsi)
 {
index f1015bf53cf0839ed15b9e827ca3a0340f56e2e3..813057cb2ddb1485f40b0d4f46e15456807c6473 100644 (file)
@@ -630,12 +630,7 @@ void __cpuinit mp_register_lapic(int id, u8 enabled)
 #define MP_ISA_BUS             0
 #define MP_MAX_IOAPIC_PIN      127
 
-static struct mp_ioapic_routing {
-       int apic_id;
-       int gsi_base;
-       int gsi_end;
-       u32 pin_programmed[4];
-} mp_ioapic_routing[MAX_IO_APICS];
+extern struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
 
 static int mp_find_ioapic(int gsi)
 {
index 095e8e30a345820af7f47b9cad5b3e7cf96bd559..0c9e17c73e05b9da8654199a184c003e5d957e45 100644 (file)
@@ -110,6 +110,13 @@ extern int nr_ioapic_registers[MAX_IO_APICS];
  * MP-BIOS irq configuration table structures:
  */
 
+struct mp_ioapic_routing {
+       int apic_id;
+       int gsi_base;
+       int gsi_end;
+       u32 pin_programmed[4];
+};
+
 /* I/O APIC entries */
 extern struct mpc_config_ioapic mp_ioapics[MAX_IO_APICS];