kernel_optimize_test/kernel/irq
Yinghai Lu 2c6927a38f irq: replace loop with nr_irqs with for_each_irq_desc
There are a handful of loops that go from 0 to nr_irqs and use
get_irq_desc() on them. These would allocate all the irq_desc
entries, regardless of the need for them.

Use the smarter for_each_irq_desc() iterator that will only iterate
over the present ones.

v2: make sure arch without GENERIC_HARDIRQS work too

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-16 16:52:33 +02:00
..
autoprobe.c irq: sparse irqs, fix IRQ auto-probe crash 2008-10-16 16:52:30 +02:00
chip.c x86: move kstat_irqs from kstat to irq_desc 2008-10-16 16:52:32 +02:00
devres.c
handle.c irq: add irq_desc_without_new 2008-10-16 16:52:32 +02:00
internals.h irq: replace loop with nr_irqs with for_each_irq_desc 2008-10-16 16:52:33 +02:00
Makefile
manage.c irq: replace loop with nr_irqs with for_each_irq_desc 2008-10-16 16:52:33 +02:00
migration.c generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[] 2008-10-16 16:52:29 +02:00
proc.c irq: replace loop with nr_irqs with for_each_irq_desc 2008-10-16 16:52:33 +02:00
resend.c generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[] 2008-10-16 16:52:29 +02:00
spurious.c generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[] 2008-10-16 16:52:29 +02:00