diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-04-04 15:41:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:34 -0400 |
commit | 61048c6328819b0973ef662f6d46f2e2bc753ceb (patch) | |
tree | 09efa08f2e4a18b191769aad558144c2bde404df /include | |
parent | 16ecf7a47cf4f1c97189a551b001195aed550cc2 (diff) |
x86: don't set IO APIC features if IO APIC is not enabled
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/mach-default/mach_apic.h | 2 | ||||
-rw-r--r-- | include/asm-x86/mpspec.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/asm-x86/mach-default/mach_apic.h b/include/asm-x86/mach-default/mach_apic.h index 14217a970c5e..0a6634f62abe 100644 --- a/include/asm-x86/mach-default/mach_apic.h +++ b/include/asm-x86/mach-default/mach_apic.h | |||
@@ -69,8 +69,10 @@ static inline u32 phys_pkg_id(u32 cpuid_apic, int index_msb) | |||
69 | 69 | ||
70 | static inline void setup_apic_routing(void) | 70 | static inline void setup_apic_routing(void) |
71 | { | 71 | { |
72 | #ifdef CONFIG_X86_IO_APIC | ||
72 | printk("Enabling APIC mode: %s. Using %d I/O APICs\n", | 73 | printk("Enabling APIC mode: %s. Using %d I/O APICs\n", |
73 | "Flat", nr_ioapics); | 74 | "Flat", nr_ioapics); |
75 | #endif | ||
74 | } | 76 | } |
75 | 77 | ||
76 | static inline int apicid_to_node(int logical_apicid) | 78 | static inline int apicid_to_node(int logical_apicid) |
diff --git a/include/asm-x86/mpspec.h b/include/asm-x86/mpspec.h index 1f6445b147f8..08cc5e027958 100644 --- a/include/asm-x86/mpspec.h +++ b/include/asm-x86/mpspec.h | |||
@@ -36,9 +36,6 @@ extern int mp_bus_id_to_pci_bus[MAX_MP_BUSSES]; | |||
36 | 36 | ||
37 | extern unsigned int boot_cpu_physical_apicid; | 37 | extern unsigned int boot_cpu_physical_apicid; |
38 | extern int smp_found_config; | 38 | extern int smp_found_config; |
39 | extern int nr_ioapics; | ||
40 | extern int mp_irq_entries; | ||
41 | extern struct mpc_config_intsrc mp_irqs[MAX_IRQ_SOURCES]; | ||
42 | extern int mpc_default_type; | 39 | extern int mpc_default_type; |
43 | extern unsigned long mp_lapic_addr; | 40 | extern unsigned long mp_lapic_addr; |
44 | 41 | ||