Messages in this thread Patch in this message | | | Date | Tue, 19 Oct 2004 19:31:56 -0700 | Subject | [PATCH] add hook to generic irq code (free_irq) | From | (Chris Wedgwood) |
| |
This is needed because some architectures (well, presently only UML) needs to be notified as things are freed.
Signed-off-by: cw@f00f.org
I can't say I'm 100% happy about this, either the name or a somewhat ugly hook that is called with a spinlock held but for lack of any better suggestions...
Comments?
include/asm-i386/hardirq.h | 3 +++ include/asm-ppc/hardirq.h | 3 +++ include/asm-ppc64/hardirq.h | 3 +++ include/asm-x86_64/hardirq.h | 4 ++++ kernel/irq/manage.c | 1 + 5 files changed, 14 insertions(+)
diff -Nru a/include/asm-i386/hardirq.h b/include/asm-i386/hardirq.h --- a/include/asm-i386/hardirq.h 2004-10-19 17:47:40 -07:00 +++ b/include/asm-i386/hardirq.h 2004-10-19 17:47:40 -07:00 @@ -16,4 +16,7 @@ void ack_bad_irq(unsigned int irq); +/* NOP */ +#define platform_free_irq_notify(i, d) + #endif /* __ASM_HARDIRQ_H */ diff -Nru a/include/asm-ppc/hardirq.h b/include/asm-ppc/hardirq.h --- a/include/asm-ppc/hardirq.h 2004-10-19 17:47:40 -07:00 +++ b/include/asm-ppc/hardirq.h 2004-10-19 17:47:40 -07:00 @@ -27,5 +27,8 @@ BUG(); } +/* NOP */ +#define platform_free_irq_notify(i, d) + #endif /* __ASM_HARDIRQ_H */ #endif /* __KERNEL__ */ diff -Nru a/include/asm-ppc64/hardirq.h b/include/asm-ppc64/hardirq.h --- a/include/asm-ppc64/hardirq.h 2004-10-19 17:47:40 -07:00 +++ b/include/asm-ppc64/hardirq.h 2004-10-19 17:47:40 -07:00 @@ -25,4 +25,7 @@ BUG(); } +/* NOP */ +#define platform_free_irq_notify(i, d) + #endif /* __ASM_HARDIRQ_H */ diff -Nru a/include/asm-x86_64/hardirq.h b/include/asm-x86_64/hardirq.h --- a/include/asm-x86_64/hardirq.h 2004-10-19 17:47:40 -07:00 +++ b/include/asm-x86_64/hardirq.h 2004-10-19 17:47:40 -07:00 @@ -36,4 +36,8 @@ #endif #endif } + +/* NOP */ +#define platform_irq_free_notify(i, d) + #endif /* __ASM_HARDIRQ_H */ diff -Nru a/kernel/irq/manage.c b/kernel/irq/manage.c --- a/kernel/irq/manage.c 2004-10-19 17:47:40 -07:00 +++ b/kernel/irq/manage.c 2004-10-19 17:47:40 -07:00 @@ -260,6 +260,7 @@ else desc->handler->disable(irq); } + platform_free_irq_notify(irq, dev_id); spin_unlock_irqrestore(&desc->lock,flags); unregister_handler_proc(irq, action); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |