Re: [PATCH v2 2/4] ARCv2: IRQ: Remove option for setting number of interrupts

From: Vineet Gupta
Date: Tue Jan 31 2017 - 13:18:39 EST


On 01/31/2017 03:45 AM, Yuriy Kolerov wrote:
> When you set a value of ARC_NUMBER_OF_INTERRUPTS option
> it affects only a size of the interrupts table but macros
> for number of virtual interrupts (NR_IRQS) and for number
> of hardware interrupts (NR_CPU_IRQS) remain unchanged.
> Moreover usage of ARC_NUMBER_OF_INTERRUPTS is bad for
> portability since it is not possible to change size
> of the interrupts table after linkage.
>
> This patch makes these changes in IRQ subsystem:
>
> * NR_CPU_IRQS defines a maximum number of hardware interrupts.
> * Remove ARC_NUMBER_OF_INTERRUPTS option and create interrupts
> table for all possible hardware interrupts.
> * Increase a maximum number of virtual IRQs to 512. ARCv2 can
> support 240 interrupts in the core interrupts controllers
> and 128 interrupts in IDU. Thus 512 virtual IRQs must be
> enough for most configurations of boards.
>
> Signed-off-by: Yuriy Kolerov <yuriy.kolerov@xxxxxxxxxxxx>

Applied to for-next.

Thx,
-Vineet