--- c4cbd3080c1c36e0c798d10a4652427fa4e09603 +++ 4c56f544f1676a06ce9bca808d1c6fae943840d2 @@ -67,17 +67,8 @@ void __init default_setup_apic_routing(v } #endif - if (apic == &apic_flat) { - switch (boot_cpu_data.x86_vendor) { - case X86_VENDOR_INTEL: - if (num_processors > 8) - apic = &apic_physflat; - break; - case X86_VENDOR_AMD: - if (max_physical_apicid >= 8) - apic = &apic_physflat; - } - } + if (apic == &apic_flat && num_possible_cpus() > 8) + apic = &apic_physflat; printk(KERN_INFO "Setting APIC routing to %s\n", apic->name);