* [PATCH 2.6.23-rc2-rt2] call IRQ-chip's end hook in thread_simple_irq()
@ 2007-08-31 3:07 Kevin Hilman
0 siblings, 0 replies; only message in thread
From: Kevin Hilman @ 2007-08-31 3:07 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner; +Cc: LKML, RT-Users
When using the 'simple' handler as a chained handler, the end hook
should be called so the chained handler can properly ack/unmask
etc. after the threaded handler has completed.
In particular, the chained GPIO IRQ hander on OMAP uses the 'simple'
handler since the GPIO IRQs can be dynamically configured either as
edge or level. When using threaded IRQs, the only way to know when
the handler is done and do the proper ack/unmask is via the end hook.
Signed-off-by: Kevin Hilman <khilman@mvista.com>
--- linux-2.6.21.orig/kernel/irq/manage.c
+++ linux-2.6.21/kernel/irq/manage.c
@@ -637,6 +637,8 @@ static void thread_simple_irq(irq_desc_t
note_interrupt(irq, desc, action_ret);
}
desc->status &= ~IRQ_INPROGRESS;
+ if (desc->chip->end)
+ desc->chip->end(irq);
}
/*
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-31 3:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-31 3:07 [PATCH 2.6.23-rc2-rt2] call IRQ-chip's end hook in thread_simple_irq() Kevin Hilman
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®