]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[]
authorYinghai Lu <yhlu.kernel@gmail.com>
Wed, 20 Aug 2008 03:50:05 +0000 (20:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:29 +0000 (16:52 +0200)
commit08678b0841267c1d00d771fe01548d86043d065e
tree7debb21f9e9a768ced43077f7376797a0c46f8c0
parentbfea1238beac9d306eeac081c67de5ca6aec4c7a
generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[]

add CONFIG_HAVE_SPARSE_IRQ to for use condensed array.
Get rid of irq_desc[] array assumptions.

Preallocate 32 irq_desc, and irq_desc() will try to get more.

( No change in functionality is expected anywhere, except the odd build
  failure where we missed a code site or where a crossing commit itroduces
  new irq_desc[] usage. )

v2: according to Eric, change get_irq_desc() to irq_desc()

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
28 files changed:
arch/Kconfig
arch/x86/Kconfig
arch/x86/kernel/io_apic_32.c
arch/x86/kernel/io_apic_64.c
arch/x86/kernel/irq_32.c
arch/x86/kernel/irq_64.c
arch/x86/kernel/irqinit_64.c
arch/x86/kernel/visws_quirks.c
arch/x86/mach-voyager/voyager_smp.c
drivers/gpio/gpiolib.c
drivers/mfd/asic3.c
drivers/mfd/htc-egpio.c
drivers/parisc/dino.c
drivers/parisc/eisa.c
drivers/parisc/gsc.c
drivers/parisc/iosapic.c
drivers/parisc/superio.c
drivers/pcmcia/hd64465_ss.c
drivers/xen/events.c
include/linux/irq.h
kernel/irq/autoprobe.c
kernel/irq/chip.c
kernel/irq/handle.c
kernel/irq/manage.c
kernel/irq/migration.c
kernel/irq/proc.c
kernel/irq/resend.c
kernel/irq/spurious.c