diff options
Diffstat (limited to 'arch/x86/xen/spinlock.c')
-rw-r--r-- | arch/x86/xen/spinlock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c index af907a90fb19..9e2ba5c6e1dd 100644 --- a/arch/x86/xen/spinlock.c +++ b/arch/x86/xen/spinlock.c | |||
@@ -21,7 +21,7 @@ static DEFINE_PER_CPU(int, lock_kicker_irq) = -1; | |||
21 | static DEFINE_PER_CPU(char *, irq_name); | 21 | static DEFINE_PER_CPU(char *, irq_name); |
22 | static bool xen_pvspin = true; | 22 | static bool xen_pvspin = true; |
23 | 23 | ||
24 | #ifdef CONFIG_QUEUED_SPINLOCK | 24 | #ifdef CONFIG_QUEUED_SPINLOCKS |
25 | 25 | ||
26 | #include <asm/qspinlock.h> | 26 | #include <asm/qspinlock.h> |
27 | 27 | ||
@@ -65,7 +65,7 @@ static void xen_qlock_wait(u8 *byte, u8 val) | |||
65 | xen_poll_irq(irq); | 65 | xen_poll_irq(irq); |
66 | } | 66 | } |
67 | 67 | ||
68 | #else /* CONFIG_QUEUED_SPINLOCK */ | 68 | #else /* CONFIG_QUEUED_SPINLOCKS */ |
69 | 69 | ||
70 | enum xen_contention_stat { | 70 | enum xen_contention_stat { |
71 | TAKEN_SLOW, | 71 | TAKEN_SLOW, |
@@ -264,7 +264,7 @@ static void xen_unlock_kick(struct arch_spinlock *lock, __ticket_t next) | |||
264 | } | 264 | } |
265 | } | 265 | } |
266 | } | 266 | } |
267 | #endif /* CONFIG_QUEUED_SPINLOCK */ | 267 | #endif /* CONFIG_QUEUED_SPINLOCKS */ |
268 | 268 | ||
269 | static irqreturn_t dummy_handler(int irq, void *dev_id) | 269 | static irqreturn_t dummy_handler(int irq, void *dev_id) |
270 | { | 270 | { |
@@ -328,7 +328,7 @@ void __init xen_init_spinlocks(void) | |||
328 | return; | 328 | return; |
329 | } | 329 | } |
330 | printk(KERN_DEBUG "xen: PV spinlocks enabled\n"); | 330 | printk(KERN_DEBUG "xen: PV spinlocks enabled\n"); |
331 | #ifdef CONFIG_QUEUED_SPINLOCK | 331 | #ifdef CONFIG_QUEUED_SPINLOCKS |
332 | __pv_init_lock_hash(); | 332 | __pv_init_lock_hash(); |
333 | pv_lock_ops.queued_spin_lock_slowpath = __pv_queued_spin_lock_slowpath; | 333 | pv_lock_ops.queued_spin_lock_slowpath = __pv_queued_spin_lock_slowpath; |
334 | pv_lock_ops.queued_spin_unlock = PV_CALLEE_SAVE(__pv_queued_spin_unlock); | 334 | pv_lock_ops.queued_spin_unlock = PV_CALLEE_SAVE(__pv_queued_spin_unlock); |
@@ -366,7 +366,7 @@ static __init int xen_parse_nopvspin(char *arg) | |||
366 | } | 366 | } |
367 | early_param("xen_nopvspin", xen_parse_nopvspin); | 367 | early_param("xen_nopvspin", xen_parse_nopvspin); |
368 | 368 | ||
369 | #if defined(CONFIG_XEN_DEBUG_FS) && !defined(CONFIG_QUEUED_SPINLOCK) | 369 | #if defined(CONFIG_XEN_DEBUG_FS) && !defined(CONFIG_QUEUED_SPINLOCKS) |
370 | 370 | ||
371 | static struct dentry *d_spin_debug; | 371 | static struct dentry *d_spin_debug; |
372 | 372 | ||