mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] genirq: Add the IRQS_ONESHOT support for edge interrupt
@ 2012-09-18 12:54 Chuansheng Liu
       [not found] ` <CAK7N6vqKp0Tcdr0CP4grq12C8-Oe05+uCEyos=mLMitwpet+Zw@mail.gmail.com>
  2012-09-18 13:57 ` Chuansheng Liu
  0 siblings, 2 replies; 7+ messages in thread
From: Chuansheng Liu @ 2012-09-18 12:54 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel, chuansheng.liu

In handle_edge_irq(), currently do not care about the flag IRQS_ONESHOT,
but there are many edge interrupt handler with irq thread need it indeed,
so implement here.

Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
---
 kernel/irq/chip.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index eebd6d5..8e4e49a 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -497,7 +497,13 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
 	kstat_incr_irqs_this_cpu(irq, desc);
 
 	/* Start handling the irq */
-	desc->irq_data.chip->irq_ack(&desc->irq_data);
+	if (desc->istate & IRQS_ONESHOT) {
+		mask_ack_irq(desc);
+		handle_irq_event(desc);
+		cond_unmask_irq();
+		goto out_unlock;
+	} else
+		desc->irq_data.chip->irq_ack(&desc->irq_data);
 
 	do {
 		if (unlikely(!desc->action)) {
-- 
1.7.0.4




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-09-18  9:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-18 12:54 [PATCH] genirq: Add the IRQS_ONESHOT support for edge interrupt Chuansheng Liu
     [not found] ` <CAK7N6vqKp0Tcdr0CP4grq12C8-Oe05+uCEyos=mLMitwpet+Zw@mail.gmail.com>
2012-09-18  4:51   ` Liu, Chuansheng
2012-09-18  7:13     ` anish singh
2012-09-18  7:18       ` Liu, Chuansheng
2012-09-18  7:21       ` Liu, Chuansheng
2012-09-18  9:08         ` anish singh
2012-09-18 13:57 ` Chuansheng Liu

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®