[PATCH 13/26] genirq: Convert locks to raw_spinlocks

John Kacur
2010-01-11T21:30:35Z

Convert locks that cannot sleep in preempt-rt to raw_spinlocks.

See also: fd2bde5dd1689cc8ede833604cc19d1c835faf61

Signed-off-by: John Kacur <jkacur@redhat.com>
---
arch/arm/oprofile/op_model_mpcore.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/oprofile/op_model_mpcore.c b/arch/arm/oprofile/op_model_mpcore.c
index 4ce0f98..cc125c2 100644
--- a/arch/arm/oprofile/op_model_mpcore.c
+++ b/arch/arm/oprofile/op_model_mpcore.c
@@ -263,10 +263,10 @@ static void em_route_irq(int irq, unsigned int cpu)
struct irq_desc *desc = irq_desc + irq;
const struct cpumask *mask = cpumask_of(cpu);

- spin_lock_irq(&desc->lock);
+ raw_spin_lock_irq(&desc->lock);
cpumask_copy(desc->affinity, mask);
desc->chip->set_affinity(irq, mask);
- spin_unlock_irq(&desc->lock);
+ raw_spin_unlock_irq(&desc->lock);
}

static int em_setup(void)
--
1.6.5.2