lkml.org 
[lkml]   [2010]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/26] genirq: Convert locks to raw_spinlocks
Date
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


\
 
 \ /
  Last update: 2010-01-11 22:33    [W:0.128 / U:28.532 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site