aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/mpparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/mpparse.c')
-rw-r--r--arch/i386/kernel/mpparse.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/i386/kernel/mpparse.c b/arch/i386/kernel/mpparse.c
index 5d0b9a8fc43d..cafaeffe3818 100644
--- a/arch/i386/kernel/mpparse.c
+++ b/arch/i386/kernel/mpparse.c
@@ -668,8 +668,6 @@ void __init get_smp_config (void)
668 struct intel_mp_floating *mpf = mpf_found; 668 struct intel_mp_floating *mpf = mpf_found;
669 669
670 /* 670 /*
671 * ACPI may be used to obtain the entire SMP configuration or just to
672 * enumerate/configure processors (CONFIG_ACPI_BOOT). Note that
673 * ACPI supports both logical (e.g. Hyper-Threading) and physical 671 * ACPI supports both logical (e.g. Hyper-Threading) and physical
674 * processors, where MPS only supports physical. 672 * processors, where MPS only supports physical.
675 */ 673 */
@@ -825,7 +823,7 @@ void __init find_smp_config (void)
825 ACPI-based MP Configuration 823 ACPI-based MP Configuration
826 -------------------------------------------------------------------------- */ 824 -------------------------------------------------------------------------- */
827 825
828#ifdef CONFIG_ACPI_BOOT 826#ifdef CONFIG_ACPI
829 827
830void __init mp_register_lapic_address ( 828void __init mp_register_lapic_address (
831 u64 address) 829 u64 address)
@@ -871,7 +869,7 @@ void __init mp_register_lapic (
871 MP_processor_info(&processor); 869 MP_processor_info(&processor);
872} 870}
873 871
874#if defined(CONFIG_X86_IO_APIC) && (defined(CONFIG_ACPI_INTERPRETER) || defined(CONFIG_ACPI_BOOT)) 872#ifdef CONFIG_X86_IO_APIC
875 873
876#define MP_ISA_BUS 0 874#define MP_ISA_BUS 0
877#define MP_MAX_IOAPIC_PIN 127 875#define MP_MAX_IOAPIC_PIN 127
@@ -1086,11 +1084,9 @@ int mp_register_gsi (u32 gsi, int edge_level, int active_high_low)
1086 */ 1084 */
1087 static int gsi_to_irq[MAX_GSI_NUM]; 1085 static int gsi_to_irq[MAX_GSI_NUM];
1088 1086
1089#ifdef CONFIG_ACPI_BUS
1090 /* Don't set up the ACPI SCI because it's already set up */ 1087 /* Don't set up the ACPI SCI because it's already set up */
1091 if (acpi_fadt.sci_int == gsi) 1088 if (acpi_fadt.sci_int == gsi)
1092 return gsi; 1089 return gsi;
1093#endif
1094 1090
1095 ioapic = mp_find_ioapic(gsi); 1091 ioapic = mp_find_ioapic(gsi);
1096 if (ioapic < 0) { 1092 if (ioapic < 0) {
@@ -1133,13 +1129,11 @@ int mp_register_gsi (u32 gsi, int edge_level, int active_high_low)
1133 if (gsi < MAX_GSI_NUM) { 1129 if (gsi < MAX_GSI_NUM) {
1134 if (gsi > 15) 1130 if (gsi > 15)
1135 gsi = pci_irq++; 1131 gsi = pci_irq++;
1136#ifdef CONFIG_ACPI_BUS
1137 /* 1132 /*
1138 * Don't assign IRQ used by ACPI SCI 1133 * Don't assign IRQ used by ACPI SCI
1139 */ 1134 */
1140 if (gsi == acpi_fadt.sci_int) 1135 if (gsi == acpi_fadt.sci_int)
1141 gsi = pci_irq++; 1136 gsi = pci_irq++;
1142#endif
1143 gsi_to_irq[irq] = gsi; 1137 gsi_to_irq[irq] = gsi;
1144 } else { 1138 } else {
1145 printk(KERN_ERR "GSI %u is too high\n", gsi); 1139 printk(KERN_ERR "GSI %u is too high\n", gsi);
@@ -1153,5 +1147,5 @@ int mp_register_gsi (u32 gsi, int edge_level, int active_high_low)
1153 return gsi; 1147 return gsi;
1154} 1148}
1155 1149
1156#endif /*CONFIG_X86_IO_APIC && (CONFIG_ACPI_INTERPRETER || CONFIG_ACPI_BOOT)*/ 1150#endif /* CONFIG_X86_IO_APIC */
1157#endif /*CONFIG_ACPI_BOOT*/ 1151#endif /* CONFIG_ACPI */