]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/xen/smp.c
xen: use lock-byte spinlock implementation
[linux-2.6-omap-h63xx.git] / arch / x86 / xen / smp.c
index 800bb2191e2a37858f954fb27bc7c61cb25b8420..a8ebafc09d4787dcbdcf868cd381b72236140725 100644 (file)
@@ -69,6 +69,7 @@ static __cpuinit void cpu_bringup_and_idle(void)
        preempt_disable();
 
        xen_enable_sysenter();
+       xen_enable_syscall();
 
        cpu = smp_processor_id();
        smp_store_cpu_info(cpu);
@@ -155,8 +156,10 @@ static void __init xen_fill_possible_map(void)
 
        for (i = 0; i < NR_CPUS; i++) {
                rc = HYPERVISOR_vcpu_op(VCPUOP_is_up, i, NULL);
-               if (rc >= 0)
+               if (rc >= 0) {
+                       num_processors++;
                        cpu_set(i, cpu_possible_map);
+               }
        }
 }
 
@@ -427,4 +430,5 @@ void __init xen_smp_init(void)
 {
        smp_ops = xen_smp_ops;
        xen_fill_possible_map();
+       paravirt_use_bytelocks();
 }