From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 4 Feb 2010 20:05:04 +0000 Subject: [RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256 In-Reply-To: <4B6B2030.3040306@xenomai.org> References: <4B6B2030.3040306@xenomai.org> Message-ID: <20100204200504.GG27344@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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.