login
Header Space

 
 

Re: [PATCH] x86_64: resize NR_IRQS for large machines (re-submit)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan Mayer <ajm@...>
Cc: <torvalds@...>, linux-kernel list <linux-kernel@...>, Robin Holt <holt@...>, Jack Steiner <steiner@...>, Russ Anderson <rja@...>
Date: Wednesday, March 26, 2008 - 6:24 pm

* Alan Mayer <ajm@sgi.com> wrote:


well, i dont it has to be (or it should be) an all or nothing patch, 
given the complexity and risks involved.

- we should first introduce a nr_irqs variable and a Kconfig switch 
  (say CONFIG_ARCH_HAS_DYNAMIC_NR_IRQS) for architectures to toggle. If 
  the switch is toggled, nr_irqs is a variable, otherwise it's a carbon 
  copy of NR_IRQS. Some array-definition, declaration and initialization 
  wrappers are provided as well.

- then the core code, x86 and most drivers can be converted to nr_irqs.
  The switch might initially even be user-selectable if
  CONFIG_DEBUG_KERNEL, to ease regression testing.

- other architectures will follow one by one, fixing their
  arch-dependent drivers as well in the process

- finally we get rid of the wrappers.

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

Messages in current thread:
Re: [PATCH] x86_64: resize NR_IRQS for large machines (re-su..., Ingo Molnar, (Wed Mar 26, 6:24 pm)
speck-geostationary