mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] add hook to generic irq code (free_irq)
@ 2004-10-20  2:31 Chris Wedgwood
  2004-10-20 13:07 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Wedgwood @ 2004-10-20  2:31 UTC (permalink / raw)
  To: LKML; +Cc: Ingo Molnar

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);
 

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

end of thread, other threads:[~2005-01-13  4:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-20  2:31 [PATCH] add hook to generic irq code (free_irq) Chris Wedgwood
2004-10-20 13:07 ` Christoph Hellwig
2004-10-20 19:42   ` Chris Wedgwood
2004-10-21  2:26   ` [RFC] add struct hw_interrupt_type->release Chris Wedgwood
2004-10-21  2:35     ` [RFC] UML converstion to generic irq code (requires hw_interrupt_type->release(...) patch) Chris Wedgwood
2004-10-21  7:23     ` [RFC] add struct hw_interrupt_type->release Christoph Hellwig
2005-01-13  4:22       ` Paolo \'Blaisorblade\' Giarrusso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome