* [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h
@ 2005-08-24 8:57 Adrian Bunk
2005-08-24 9:22 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2005-08-24 8:57 UTC (permalink / raw)
To: linux-kernel
If #includ'ing interrupt.h should be enough for getting the prototype of
e.g. enable_irq() on all architectures, we need this patch.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.13-rc6-mm1-modular/include/linux/interrupt.h.old 2005-08-22 23:44:42.000000000 +0200
+++ linux-2.6.13-rc6-mm1-modular/include/linux/interrupt.h 2005-08-22 23:45:04.000000000 +0200
@@ -12,6 +12,7 @@
#include <asm/atomic.h>
#include <asm/ptrace.h>
#include <asm/system.h>
+#include <asm/irq.h>
/*
* For 2.4.x compatibility, 2.4.x can use
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h
2005-08-24 8:57 [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h Adrian Bunk
@ 2005-08-24 9:22 ` Christoph Hellwig
2005-08-24 10:08 ` Adrian Bunk
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2005-08-24 9:22 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On Wed, Aug 24, 2005 at 10:57:50AM +0200, Adrian Bunk wrote:
> If #includ'ing interrupt.h should be enough for getting the prototype of
> e.g. enable_irq() on all architectures, we need this patch.
Per defintion you need to include <asm/irq.h> right now. I'd like to change
that to <linux/interrupt.h>, but not my including <asm/irq.h> there.
We should just make the prototypes in <linux/interrupt.h> unconditional
and get rid of the macro/inline tricks some architectures do, these calls
aren't exactly fastpathes where that matters.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h
2005-08-24 9:22 ` Christoph Hellwig
@ 2005-08-24 10:08 ` Adrian Bunk
2005-08-24 10:44 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2005-08-24 10:08 UTC (permalink / raw)
To: Christoph Hellwig, linux-kernel
On Wed, Aug 24, 2005 at 10:22:50AM +0100, Christoph Hellwig wrote:
> On Wed, Aug 24, 2005 at 10:57:50AM +0200, Adrian Bunk wrote:
> > If #includ'ing interrupt.h should be enough for getting the prototype of
> > e.g. enable_irq() on all architectures, we need this patch.
>
> Per defintion you need to include <asm/irq.h> right now. I'd like to change
> that to <linux/interrupt.h>, but not my including <asm/irq.h> there.
> We should just make the prototypes in <linux/interrupt.h> unconditional
> and get rid of the macro/inline tricks some architectures do, these calls
> aren't exactly fastpathes where that matters.
Looking at 2.6.13-rc6-mm2, the only architectures with own enable_irq()
implementations are m68knommu and sparc.
On m68knommu, enable_irq() does nothing unless a hook is used that has
no in-kernel users.
The 32bit sparc arch seems to be the only arch doing funky things.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h
2005-08-24 10:08 ` Adrian Bunk
@ 2005-08-24 10:44 ` Thomas Gleixner
2005-08-24 10:54 ` Adrian Bunk
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Gleixner @ 2005-08-24 10:44 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Christoph Hellwig, linux-kernel
On Wed, 2005-08-24 at 12:08 +0200, Adrian Bunk wrote:
> Looking at 2.6.13-rc6-mm2, the only architectures with own enable_irq()
> implementations are m68knommu and sparc.
You missed ARM.
tglx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h
2005-08-24 10:44 ` Thomas Gleixner
@ 2005-08-24 10:54 ` Adrian Bunk
0 siblings, 0 replies; 5+ messages in thread
From: Adrian Bunk @ 2005-08-24 10:54 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: Christoph Hellwig, linux-kernel
On Wed, Aug 24, 2005 at 10:44:55AM +0000, Thomas Gleixner wrote:
> On Wed, 2005-08-24 at 12:08 +0200, Adrian Bunk wrote:
>
> > Looking at 2.6.13-rc6-mm2, the only architectures with own enable_irq()
> > implementations are m68knommu and sparc.
>
> You missed ARM.
Yes and no.
Yes, because you are right that I missed architectures.
No, because I was only looking at what would be required to
unconditionally offer the enable_irq() prototyp in interrupt.h .
> tglx
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-08-24 10:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24 8:57 [RFC: 2.6 patch] #include <asm/irq.h> in interrupt.h Adrian Bunk
2005-08-24 9:22 ` Christoph Hellwig
2005-08-24 10:08 ` Adrian Bunk
2005-08-24 10:44 ` Thomas Gleixner
2005-08-24 10:54 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox