|
@@ -81,8 +81,11 @@ void xen_init_lock_cpu(int cpu)
|
|
int irq;
|
|
int irq;
|
|
char *name;
|
|
char *name;
|
|
|
|
|
|
- if (!xen_pvspin)
|
|
|
|
|
|
+ if (!xen_pvspin) {
|
|
|
|
+ if (cpu == 0)
|
|
|
|
+ static_branch_disable(&virt_spin_lock_key);
|
|
return;
|
|
return;
|
|
|
|
+ }
|
|
|
|
|
|
WARN(per_cpu(lock_kicker_irq, cpu) >= 0, "spinlock on CPU%d exists on IRQ%d!\n",
|
|
WARN(per_cpu(lock_kicker_irq, cpu) >= 0, "spinlock on CPU%d exists on IRQ%d!\n",
|
|
cpu, per_cpu(lock_kicker_irq, cpu));
|
|
cpu, per_cpu(lock_kicker_irq, cpu));
|
|
@@ -130,7 +133,6 @@ void __init xen_init_spinlocks(void)
|
|
|
|
|
|
if (!xen_pvspin) {
|
|
if (!xen_pvspin) {
|
|
printk(KERN_DEBUG "xen: PV spinlocks disabled\n");
|
|
printk(KERN_DEBUG "xen: PV spinlocks disabled\n");
|
|
- static_branch_disable(&virt_spin_lock_key);
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
printk(KERN_DEBUG "xen: PV spinlocks enabled\n");
|
|
printk(KERN_DEBUG "xen: PV spinlocks enabled\n");
|