Skip to contentSkip to conversation

x86 uv: define uv_irq_lock

PATCH New Dimitri Sivanich 1 participant 1 message Jan 18, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86 uv: define uv_irq_lock

Properly define/initialize the uv_irq_lock.

---
 arch/x86/platform/uv/uv_irq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/uv/uv_irq.c +1 -1
Index: linux/arch/x86/platform/uv/uv_irq.c
===================================================================
@@ -25,7 +25,7 @@ struct uv_irq_2_mmr_pnode{
 	int			irq;
 };
 
-static spinlock_t		uv_irq_lock;
+static DEFINE_SPINLOCK(uv_irq_lock);
 static struct rb_root		uv_irq_root;
 
 static int uv_set_irq_affinity(struct irq_data *, const struct cpumask *, bool);