x86/xen/smp_pv: Count number of vCPUs early
[linux-2.6-microblaze.git] / arch / x86 / xen / enlighten_pv.c
index aeb33e0..ace2eb0 100644 (file)
@@ -200,6 +200,9 @@ static void __init xen_pv_init_platform(void)
                xen_set_mtrr_data();
        else
                mtrr_overwrite_state(NULL, 0, MTRR_TYPE_WRBACK);
+
+       /* Adjust nr_cpu_ids before "enumeration" happens */
+       xen_smp_count_cpus();
 }
 
 static void __init xen_pv_guest_late_init(void)