diff options
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index b5571fb0f77e..8fbad8ed0ebe 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -1197,36 +1197,6 @@ void __init init_apic_mappings(void) | |||
1197 | if (boot_cpu_physical_apicid == -1U) | 1197 | if (boot_cpu_physical_apicid == -1U) |
1198 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); | 1198 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
1199 | 1199 | ||
1200 | #ifdef CONFIG_X86_IO_APIC | ||
1201 | { | ||
1202 | unsigned long ioapic_phys, idx = FIX_IO_APIC_BASE_0; | ||
1203 | int i; | ||
1204 | |||
1205 | for (i = 0; i < nr_ioapics; i++) { | ||
1206 | if (smp_found_config) { | ||
1207 | ioapic_phys = mp_ioapics[i].mp_apicaddr; | ||
1208 | if (!ioapic_phys) { | ||
1209 | printk(KERN_ERR | ||
1210 | "WARNING: bogus zero IO-APIC " | ||
1211 | "address found in MPTABLE, " | ||
1212 | "disabling IO/APIC support!\n"); | ||
1213 | smp_found_config = 0; | ||
1214 | skip_ioapic_setup = 1; | ||
1215 | goto fake_ioapic_page; | ||
1216 | } | ||
1217 | } else { | ||
1218 | fake_ioapic_page: | ||
1219 | ioapic_phys = (unsigned long) | ||
1220 | alloc_bootmem_pages(PAGE_SIZE); | ||
1221 | ioapic_phys = __pa(ioapic_phys); | ||
1222 | } | ||
1223 | set_fixmap_nocache(idx, ioapic_phys); | ||
1224 | printk(KERN_DEBUG "mapped IOAPIC to %08lx (%08lx)\n", | ||
1225 | __fix_to_virt(idx), ioapic_phys); | ||
1226 | idx++; | ||
1227 | } | ||
1228 | } | ||
1229 | #endif | ||
1230 | } | 1200 | } |
1231 | 1201 | ||
1232 | /* | 1202 | /* |