[RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Feb 4 15:05:04 EST 2010


On Thu, Feb 04, 2010 at 08:29:52PM +0100, Gilles Chanteperdrix wrote:
> Eric Miao wrote:
> > -#if NR_IRQS > 256
> > +#if NR_IRQS > 512
> > +#define HARDIRQ_BITS	10
> > +#elif NR_IRQS > 256
> >  #define HARDIRQ_BITS	9
> >  #else
> >  #define HARDIRQ_BITS	8
> 
> Would not it be possible to use
> 
> #define HARDIRQ_BITS order_base_2(NR_IRQS)

HARDIRQ_BITS must be a preprocessor constant.



More information about the linux-arm-kernel mailing list