Messages in this thread | | | Date | Sat, 13 Jun 2009 10:57:38 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] asm-generic: hard_irqs: handle NR_IRQS > 256 automatically |
| |
Mike Frysinger wrote: > If we're going to automatically set HARDIRQ_BITS for the arch, might as > well be a little bit smart about it and set it to 9 automatically if > NR_IRQS is larger than 8 bits. >
Why would the only possible values be 8 or 9?
> > #ifndef HARDIRQ_BITS > -#define HARDIRQ_BITS 8 > +# if NR_IRQS > 256 > +# define HARDIRQ_BITS 9 > +# else > +# define HARDIRQ_BITS 8 > +# endif > #endif > > /*
-- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
| |