[PATCH] ARM: integrator: convert to sparse irqs
Linus Walleij
linus.walleij at linaro.org
Sun Feb 26 04:45:09 EST 2012
On Fri, Feb 24, 2012 at 8:15 PM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj at jcrosoft.com> wrote:
> On 18:32 Fri 24 Feb , Linus Walleij wrote:
>> -#define NR_IRQS 47
>> +#define NR_IRQS_INTEGRATOR_AP 34
>> +#define NR_IRQS_INTEGRATOR_CP 47
>
> why do you need to specified both?
They are two totally different machines and should never have had that
common roof of NR_IRQS = max(AP,CP), it's just not elegant.
Maybe I'm a bit pedantic but I want to set the .nr_irqs for each machine so that
it corresponds exactly to what it actually has, instead of using a roof value.
I think it improves readability and understanding.
Yours
Linus Walleij
More information about the linux-arm-kernel
mailing list