* [PATCH] genirq: Fixup ARM devel merge
@ 2006-07-03 0:22 Thomas Gleixner
0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2006-07-03 0:22 UTC (permalink / raw)
To: Linus Torvalds; +Cc: LKML, Andrew Morton, Ingo Molnar, Russell King
ARM devel merge introduced new machine functionality which was not
covered by the ARM -> genirq patches. Fix it up and make it compile
again.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Index: linux-2.6.git/arch/arm/plat-omap/gpio.c
===================================================================
--- linux-2.6.git.orig/arch/arm/plat-omap/gpio.c 2006-07-03
00:13:24.000000000 +0200
+++ linux-2.6.git/arch/arm/plat-omap/gpio.c 2006-07-03
01:51:27.000000000 +0200
@@ -850,7 +850,8 @@ static void gpio_irq_handler(unsigned in
/* Don't run the handler if it's already running
* or was disabled lazely.
*/
- if (unlikely((d->disable_depth || d->running))) {
+ if (unlikely((d->depth ||
+ (d->status & IRQ_INPROGRESS)))) {
irq_mask = 1 <<
(gpio_irq - bank->virtual_irq_start);
/* The unmasking will be done by
@@ -859,22 +860,22 @@ static void gpio_irq_handler(unsigned in
* it's already running.
*/
_enable_gpio_irqbank(bank, irq_mask, 0);
- if (!d->disable_depth) {
+ if (!d->depth) {
/* Level triggered interrupts
* won't ever be reentered
*/
BUG_ON(level_mask & irq_mask);
- d->pending = 1;
+ d->status |= IRQ_PENDING;
}
continue;
}
- d->running = 1;
+
desc_handle_irq(gpio_irq, d, regs);
- d->running = 0;
- if (unlikely(d->pending && !d->disable_depth)) {
+
+ if (unlikely((d->status & IRQ_PENDING) && !d->depth)) {
irq_mask = 1 <<
(gpio_irq - bank->virtual_irq_start);
- d->pending = 0;
+ d->status &= ~IRQ_PENDING;
_enable_gpio_irqbank(bank, irq_mask, 1);
retrigger |= irq_mask;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-03 0:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-03 0:22 [PATCH] genirq: Fixup ARM devel merge Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®