mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: cw@f00f.org (Chris Wedgwood)
To: LKML <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Subject: [PATCH] add hook to generic irq code (free_irq)
Date: Tue, 19 Oct 2004 19:31:56 -0700	[thread overview]
Message-ID: <20041020023156.GA8597@taniwha.stupidest.org> (raw)

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

             reply	other threads:[~2004-10-20  2:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-20  2:31 Chris Wedgwood [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041020023156.GA8597@taniwha.stupidest.org \
    --to=cw@f00f.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®