Re: [ANNOUNCE] 2.6.31-rc7-rt8

Kevin Hilman
2009-08-27T11:03:07Z

Thomas Gleixner <tglx@linutronix.de> writes:

> We are pleased to announce the next update to our new preempt-rt
> series.
>
> - update to Linus' latest
>
> - perf counter crash fix (peterz)
>
> - disabled MARKERS on RT. Code with no use(rs) which just causes
> trouble.
>
> - edge irq forced threading fix. Fixes the IDE "interrupt lost"
> reports
>

Hi Thomas,

Here's one more atomic_spin_lock conversion for a driver update
that went in for -rc7.

Kevin

>From 4faf27a4c0ceaddd7cb13f5d11928babc9c4cddc Mon Sep 17 00:00:00 2001
From: Kevin Hilman <khilman@deeprootsystems.com>
Date: Thu, 27 Aug 2009 13:51:47 +0300
Subject: [PATCH -rt] MFD: twl4030: convert irq_desc lock to atomic spinlock

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
---
drivers/mfd/twl4030-irq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c
index 7d43083..c1bc157 100644
--- a/drivers/mfd/twl4030-irq.c
+++ b/drivers/mfd/twl4030-irq.c
@@ -458,12 +458,12 @@ static void twl4030_sih_do_edge(struct work_struct *work)

bytes[byte] &= ~(0x03 << off);

- spin_lock_irq(&d->lock);
+ atomic_spin_lock_irq(&d->lock);
if (d->status & IRQ_TYPE_EDGE_RISING)
bytes[byte] |= BIT(off + 1);
if (d->status & IRQ_TYPE_EDGE_FALLING)
bytes[byte] |= BIT(off + 0);
- spin_unlock_irq(&d->lock);
+ atomic_spin_unlock_irq(&d->lock);

edge_change &= ~BIT(i);
}
--
1.6.4