[RFC PATCH 3/3] [ARM] Allow boards to specify the exact number of IRQs needed

Eric Miao eric.y.miao at gmail.com
Fri Feb 5 04:50:19 EST 2010


On Fri, Feb 5, 2010 at 12:30 AM, Ben Dooks <ben-linux at fluff.org> wrote:
> On Thu, Feb 04, 2010 at 11:12:37AM -0800, Eric Miao wrote:
>> commit 988a6a2bd322d83eba42c05cb6cb77a74cba056b
>> Author: Eric Miao <eric.y.miao at gmail.com>
>> Date:   Thu Feb 4 11:06:35 2010 -0800
>>
>>     [ARM] Allow boards to specify the exact number of IRQs needed
>>
>>     This will only take effect if SPARSE_IRQ is enabled, any board that
>>     depends on this _only_ has to explicitly select SPARSE_IRQ.
>>
>>     Signed-off-by: Eric Miao <eric.y.miao at gmail.com>
>
> out of interest, what happens if the user wants to instantiate an irq
> that is above the board's nr_irq setting?
>

Normally, he doesn't. Well, the board's nr_irq should have included
all the possible IRQs used on that specific board.

Taking into account of expansion at run-time (e.g. insertion into a
baseboard dynamically), he's still able to do that with

irq_to_desc_alloc_node()

instead of irq_to_desc()

explicitly when adding elements to irq_desc[].



More information about the linux-arm-kernel mailing list