x86: introduce smpboot_clear_io_apic
[sfrench/cifs-2.6.git] / arch / x86 / kernel / smpboot_64.c
index c66fb15b013126738a1c46593bbd2eb452f58bfa..775244545ffae5445cc2f7cb185797095008dc6d 100644 (file)
@@ -134,7 +134,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
                printk(KERN_ERR "BIOS bug, local APIC #%d not detected!...\n",
                        boot_cpu_physical_apicid);
                printk(KERN_ERR "... forcing use of dummy APIC emulation. (tell your hw vendor)\n");
-               nr_ioapics = 0;
+               smpboot_clear_io_apic();
                return -1;
        }
 
@@ -145,7 +145,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
         */
        if (!max_cpus) {
                printk(KERN_INFO "SMP mode deactivated, forcing use of dummy APIC emulation.\n");
-               nr_ioapics = 0;
+               smpboot_clear_io_apic();
                return -1;
        }