[RFC PATCH v2] preliminary support for sparse IRQ

Eric Miao eric.y.miao at gmail.com
Thu May 20 06:10:11 EDT 2010


On Thu, May 20, 2010 at 5:25 PM, Eric Miao <eric.y.miao at gmail.com> wrote:
> On Thu, May 20, 2010 at 5:21 PM, Will Deacon <will.deacon at arm.com> wrote:
>> Hi Eric,
>>
>>> +#ifdef CONFIG_SPARSE_IRQ
>>> +int __init arch_probe_nr_irqs(void)
>>> +{
>>> +     nr_irqs = arch_nr_irqs ? arch_nr_irqs : NR_IRQS;
>>> +     return 0;
>>> +}
>>> +#endif
>>
>> Possibly a daft question, but if CONFIG_SPARSE_IRQ is
>> not set, where does nr_irqs get assigned to?
>>
>> Other than that, looks good to me.
>>
>
> It's defined as NR_IRQS then.
>

Sorry, initialized to NR_IRQS. In kernel/irq/handle.c, around line 72.



More information about the linux-arm-kernel mailing list