[RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256
Eric Miao
eric.y.miao at gmail.com
Thu Feb 4 15:51:16 EST 2010
On Thu, Feb 4, 2010 at 12:05 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> 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.
>
Confirmed, log_order_2() won't compile.
More information about the linux-arm-kernel
mailing list