diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 23:50:11 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:52:33 -0400 |
commit | 2c6927a38f65b53b62f86158fba29a068c4e8b6a (patch) | |
tree | 4f23cf5689c8fbaed771219b4afd3f785d8048bc /kernel/irq/manage.c | |
parent | 9059d8fa4a3a9153da53da890039f7f956cc9d19 (diff) |
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>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index b5943e9f95aa..5070f55fdc16 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -478,7 +478,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
478 | spin_unlock_irqrestore(&desc->lock, flags); | 478 | spin_unlock_irqrestore(&desc->lock, flags); |
479 | 479 | ||
480 | new->irq = irq; | 480 | new->irq = irq; |
481 | register_irq_proc(irq); | 481 | register_irq_proc(irq, desc); |
482 | new->dir = NULL; | 482 | new->dir = NULL; |
483 | register_handler_proc(irq, new); | 483 | register_handler_proc(irq, new); |
484 | 484 | ||