]> Git Repo - linux.git/blobdiff - arch/x86/kernel/smpboot.c
x86/smpboot: Check APIC ID before setting up default routing
[linux.git] / arch / x86 / kernel / smpboot.c
index 2a6e84a30a546f022331c653ec0725bd73086bc5..8216b997c1c91b0dfaff7095567130111e8b5bde 100644 (file)
@@ -1316,14 +1316,13 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
                break;
        }
 
-       default_setup_apic_routing();
-
        if (read_apic_id() != boot_cpu_physical_apicid) {
                panic("Boot APIC ID in local APIC unexpected (%d vs %d)",
                     read_apic_id(), boot_cpu_physical_apicid);
                /* Or can we switch back to PIC here? */
        }
 
+       default_setup_apic_routing();
        cpu0_logical_apicid = apic_bsp_setup(false);
 
        pr_info("CPU%d: ", 0);
This page took 0.034572 seconds and 4 git commands to generate.