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

Gilles Chanteperdrix gilles.chanteperdrix at xenomai.org
Thu Feb 4 14:29:52 EST 2010


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)

to remove any limitation?

-- 
					    Gilles.



More information about the linux-arm-kernel mailing list