public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] x86 supports NO_IRQ convention
@ 2008-06-23  2:53 David Brownell
  2008-06-23  9:08 ` Alan Cox
  2008-06-23 10:42 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 11+ messages in thread
From: David Brownell @ 2008-06-23  2:53 UTC (permalink / raw)
  To: lkml; +Cc: Thomas Gleixner, Ingo Molnar, hpa

Hmm, x86 doesn't seem to support the NO_IRQ convention.  This means
that portable code can't use it.  Which in turn means that there's
no portable way for drivers to know whether they have been handed a
valid IRQ number (zero usually being valid).  Double-plus ungood.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
I suspect this has been discussed before, but I can't find any
written resolution ...

 include/asm-x86/irq.h |    4 ++++
 1 file changed, 4 insertions(+)

--- a/include/asm-x86/irq.h	2008-06-22 16:36:43.000000000 -0700
+++ b/include/asm-x86/irq.h	2008-06-22 16:37:06.000000000 -0700
@@ -3,3 +3,7 @@
 #else
 # include "irq_64.h"
 #endif
+
+#ifndef NO_IRQ
+#define NO_IRQ	((unsigned int)(-1))
+#endif

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <fa.mcHAIQmpGZB1Vrm7ZD4/q9eo08Y@ifi.uio.no>]

end of thread, other threads:[~2008-06-24  9:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23  2:53 [patch] x86 supports NO_IRQ convention David Brownell
2008-06-23  9:08 ` Alan Cox
2008-06-23 11:29   ` David Brownell
2008-06-23 14:20     ` Alan Cox
2008-06-23 11:34   ` Johannes Stezenbach
2008-06-23 10:42 ` Benjamin Herrenschmidt
2008-06-23 11:28   ` David Brownell
2008-06-23 20:06     ` Benjamin Herrenschmidt
     [not found] <fa.mcHAIQmpGZB1Vrm7ZD4/q9eo08Y@ifi.uio.no>
     [not found] ` <fa.E+RvbN2EFmsI1cxQ84PIB8FbX50@ifi.uio.no>
     [not found]   ` <fa.EDfpY1oxab2UaliWrUY0jyr5T1k@ifi.uio.no>
2008-06-24  2:20     ` Robert Hancock
2008-06-24  6:39       ` David Brownell
2008-06-24  9:12         ` Alan Cox

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