Re: [PATCH] X86: Change the default value of nr_irqs from 32 to NR_IRQs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yinghai Lu <yhlu.kernel@...>
Cc: Ingo Molnar <mingo@...>, Jeremy Fitzhardinge <Jeremy.Fitzhardinge@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Tuesday, August 19, 2008 - 7:19 pm

Yinghai Lu wrote:

So I believe the only case this affects is !CONFIG_HAVE_SPARSE_IRQ

The worry is that with CONFIG_HAVE_DYN_ARRAY we may waste memory by 
pre-allocating more irq_descs than may be necessary (NR_IRQs vs 32)?

With !CONFIG_HAVE_DYN_ARRAY however, a static array of size NR_IRQS is 
allocated instead - so doesn't defaulting nr_irqs back to NR_IRQS just 
revert to the old behaviour (with the exception of the irq_descs being 
allocated in pre_alloc_dyn_array instead)?

- Alex
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] X86: Change the default value of nr_irqs from 32..., Alex Nixon, (Tue Aug 19, 7:19 pm)
Re: [PATCH] X86: Change the default value of nr_irqs from 32..., Jeremy Fitzhardinge, (Thu Aug 21, 7:21 pm)