projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f210be1
)
[PATCH] genirq: fasteoi handler: handle interrupt disabling
author
Benjamin Herrenschmidt
<
[email protected]
>
Thu, 29 Jun 2006 09:25:01 +0000
(
02:25
-0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 29 Jun 2006 17:26:25 +0000
(10:26 -0700)
Note when a disable interrupt happened with the fasteoi handler as well so
that delayed disable can be implemented with fasteoi-type controllers.
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/irq/chip.c
patch
|
blob
|
history
diff --git
a/kernel/irq/chip.c
b/kernel/irq/chip.c
index 8736f2ca8a3bca6d07f5dc768fb801efe5cb1878..a99047a324eb94cb1eb8de355592c369952c2f29 100644
(file)
--- a/
kernel/irq/chip.c
+++ b/
kernel/irq/chip.c
@@
-311,10
+311,13
@@
handle_fastack_irq(unsigned int irq, struct irq_desc *desc,
* keep it masked and get out of here
*/
action = desc->action;
- if (unlikely(!action || (desc->status & IRQ_DISABLED)))
+ if (unlikely(!action || (desc->status & IRQ_DISABLED))) {
+ desc->status |= IRQ_PENDING;
goto out;
+ }
desc->status |= IRQ_INPROGRESS;
+ desc->status &= ~IRQ_PENDING;
spin_unlock(&desc->lock);
action_ret = handle_IRQ_event(irq, regs, action);