[lkml]   [2017]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 2/4] ARCv2: IRQ: Remove option for setting number of interrupts
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 <>

Applied to for-next.


 \ /
  Last update: 2017-01-31 19:20    [W:0.134 / U:4.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site