public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* Re: enable_irq/disable_irq
       [not found]       ` <20041026034908.6e57dc30.akpm@osdl.org>
@ 2004-10-26 11:06         ` Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2004-10-26 11:06 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Christoph Hellwig, mingo, linux-arch, linux-kernel

On Tue, Oct 26, 2004 at 03:49:08AM -0700, Andrew Morton wrote:
> Christoph Hellwig <hch@infradead.org> wrote:
> >
> > On Tue, Oct 26, 2004 at 03:20:18AM -0700, Andrew Morton wrote:
> > > As all platforms must provide enable_irq() and disable_irq() we should put
> > > the declarations in a generic header.  Why not put them in
> > > linux/interrupt.h?
> > 
> > I looked into that a few days ago, but unfortunately a few architectures
> > have inlined variants.  
> 
> So where's the official declaration of enable_irq()?  For some
> architectures, linux/interrupt.h.  For others, asm/irq.h.  That's screwed.
> 
> I suggest that we move this:
> 
> #ifdef CONFIG_GENERIC_HARDIRQS
> extern void disable_irq_nosync(unsigned int irq);
> extern void disable_irq(unsigned int irq);
> extern void enable_irq(unsigned int irq);
> #endif
> 
> out of interrupt.h and into each relevant asm/irq.h.
> 
> Maybe.  It still sucks.

Well, ingo just moved it from <asm/irq.h> to <linux/interrupt.h> protected
by CONFIG_GENERIC_HARDIRQS, but maybe we should move it back.  Or say that
performance doesn't matter so much for these and they should be out of line
for all architectures.

What do the architecture maintainers think about this?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-26 11:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20041026024049.3d327b8e.akpm@osdl.org>
     [not found] ` <20041026100656.GA11153@elte.hu>
     [not found]   ` <20041026032018.653e380b.akpm@osdl.org>
     [not found]     ` <20041026103913.GA12158@infradead.org>
     [not found]       ` <20041026034908.6e57dc30.akpm@osdl.org>
2004-10-26 11:06         ` enable_irq/disable_irq Christoph Hellwig

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