From: Yinghai Lu Date: Wed, 20 Aug 2008 03:50:11 +0000 (-0700) Subject: irq: replace loop with nr_irqs with for_each_irq_desc X-Git-Tag: v2.6.28-rc1~80^2~138 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6927a38f65b53b62f86158fba29a068c4e8b6a;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed