]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: move es7000_plat out of mpparse.c
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Wed, 14 May 2008 15:02:51 +0000 (19:02 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 08:55:12 +0000 (10:55 +0200)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/mpparse.c
arch/x86/mach-es7000/es7000plat.c
include/asm-x86/system.h

index 5a18b2b9852ef9ac6b35fbf8cab963fe4e8f5b47..ff1342325efcfe7073c9c99ef5b5d186d1c131a9 100644 (file)
@@ -793,15 +793,14 @@ void __init find_smp_config(void)
                             ACPI-based MP Configuration
    -------------------------------------------------------------------------- */
 
-/*
- * Keep this outside and initialized to 0, for !CONFIG_ACPI builds:
- */
-int es7000_plat;
-
 #ifdef CONFIG_ACPI
 
 #ifdef CONFIG_X86_IO_APIC
 
+#if defined(CONFIG_X86_ES7000) || defined(CONFIG_X86_GENERICARCH)
+extern int es7000_plat;
+#endif
+
 #define MP_ISA_BUS             0
 
 static struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
@@ -928,11 +927,13 @@ void __init mp_config_acpi_legacy_irqs(void)
        set_bit(MP_ISA_BUS, mp_bus_not_pci);
        Dprintk("Bus #%d is ISA\n", MP_ISA_BUS);
 
+#if defined(CONFIG_X86_ES7000) || defined(CONFIG_X86_GENERICARCH)
        /*
         * Older generations of ES7000 have no legacy identity mappings
         */
        if (es7000_plat == 1)
                return;
+#endif
 
        /*
         * Locate the IOAPIC that manages the ISA IRQs (0-15).
index f5d6f7d8b86ec2ed6d218a2dd0aca3e36115e841..a41c77a472276c183e54bd93bc10ecbb8bf2b9b3 100644 (file)
@@ -52,6 +52,8 @@ static struct mip_reg         *host_reg;
 static int                     mip_port;
 static unsigned long           mip_addr, host_addr;
 
+int es7000_plat;
+
 /*
  * GSI override for ES7000 platforms.
  */
index a2f04cd79b29617e4677a0a1a1c23f4f1d434b23..9f7f63ba0042a25b979a0f0083e1583be1da4743 100644 (file)
@@ -303,7 +303,6 @@ static inline void clflush(volatile void *__p)
 void disable_hlt(void);
 void enable_hlt(void);
 
-extern int es7000_plat;
 void cpu_idle_wait(void);
 
 extern unsigned long arch_align_stack(unsigned long sp);