x86: use cpumask function for present, possible, and online cpus
[linux-3.10.git] / arch / x86 / kernel / genapic_64.c
index 9546ef4..021624c 100644 (file)
@@ -51,7 +51,7 @@ void __init setup_apic_routing(void)
        else
 #endif
 
-       if (cpus_weight(cpu_possible_map) <= 8)
+       if (num_possible_cpus() <= 8)
                genapic = &apic_flat;
        else
                genapic = &apic_physflat;