aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-05-14 11:02:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 04:55:12 -0400
commit32c5061265caf201d6a2c0d02181e2b68769c22c (patch)
tree5f0e1e68236bbb24df36d670f13bccbbca03ecfb
parent11a62a056093a7f25f1595fbd8bd5f93559572b6 (diff)
x86: move es7000_plat out of mpparse.c
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/mpparse.c11
-rw-r--r--arch/x86/mach-es7000/es7000plat.c2
-rw-r--r--include/asm-x86/system.h1
3 files changed, 8 insertions, 6 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index 5a18b2b9852e..ff1342325efc 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -793,15 +793,14 @@ void __init find_smp_config(void)
793 ACPI-based MP Configuration 793 ACPI-based MP Configuration
794 -------------------------------------------------------------------------- */ 794 -------------------------------------------------------------------------- */
795 795
796/*
797 * Keep this outside and initialized to 0, for !CONFIG_ACPI builds:
798 */
799int es7000_plat;
800
801#ifdef CONFIG_ACPI 796#ifdef CONFIG_ACPI
802 797
803#ifdef CONFIG_X86_IO_APIC 798#ifdef CONFIG_X86_IO_APIC
804 799
800#if defined(CONFIG_X86_ES7000) || defined(CONFIG_X86_GENERICARCH)
801extern int es7000_plat;
802#endif
803
805#define MP_ISA_BUS 0 804#define MP_ISA_BUS 0
806 805
807static struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS]; 806static struct mp_ioapic_routing mp_ioapic_routing[MAX_IO_APICS];
@@ -928,11 +927,13 @@ void __init mp_config_acpi_legacy_irqs(void)
928 set_bit(MP_ISA_BUS, mp_bus_not_pci); 927 set_bit(MP_ISA_BUS, mp_bus_not_pci);
929 Dprintk("Bus #%d is ISA\n", MP_ISA_BUS); 928 Dprintk("Bus #%d is ISA\n", MP_ISA_BUS);
930 929
930#if defined(CONFIG_X86_ES7000) || defined(CONFIG_X86_GENERICARCH)
931 /* 931 /*
932 * Older generations of ES7000 have no legacy identity mappings 932 * Older generations of ES7000 have no legacy identity mappings
933 */ 933 */
934 if (es7000_plat == 1) 934 if (es7000_plat == 1)
935 return; 935 return;
936#endif
936 937
937 /* 938 /*
938 * Locate the IOAPIC that manages the ISA IRQs (0-15). 939 * Locate the IOAPIC that manages the ISA IRQs (0-15).
diff --git a/arch/x86/mach-es7000/es7000plat.c b/arch/x86/mach-es7000/es7000plat.c
index f5d6f7d8b86e..a41c77a47227 100644
--- a/arch/x86/mach-es7000/es7000plat.c
+++ b/arch/x86/mach-es7000/es7000plat.c
@@ -52,6 +52,8 @@ static struct mip_reg *host_reg;
52static int mip_port; 52static int mip_port;
53static unsigned long mip_addr, host_addr; 53static unsigned long mip_addr, host_addr;
54 54
55int es7000_plat;
56
55/* 57/*
56 * GSI override for ES7000 platforms. 58 * GSI override for ES7000 platforms.
57 */ 59 */
diff --git a/include/asm-x86/system.h b/include/asm-x86/system.h
index a2f04cd79b29..9f7f63ba0042 100644
--- a/include/asm-x86/system.h
+++ b/include/asm-x86/system.h
@@ -303,7 +303,6 @@ static inline void clflush(volatile void *__p)
303void disable_hlt(void); 303void disable_hlt(void);
304void enable_hlt(void); 304void enable_hlt(void);
305 305
306extern int es7000_plat;
307void cpu_idle_wait(void); 306void cpu_idle_wait(void);
308 307
309extern unsigned long arch_align_stack(unsigned long sp); 308extern unsigned long arch_align_stack(unsigned long sp);