irq, fs/proc: replace loop with nr_irqs for proc/stat
authorYinghai Lu <yhlu.kernel@gmail.com>
Wed, 20 Aug 2008 03:50:12 +0000 (20:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:33 +0000 (16:52 +0200)
commitc7fb03a475bd80c642c1345d85c7c550f63514b8
tree575978fa259a52209f00d5bfaacb4d162caef0d3
parent2c6927a38f65b53b62f86158fba29a068c4e8b6a
irq, fs/proc: replace loop with nr_irqs for proc/stat

Replace another nr_irqs loop to avoid the allocation of all sparse
irq entries - use for_each_irq_desc instead.

v2: make sure arch without GENERIC_HARDIRQS works too

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
fs/proc/proc_misc.c
include/linux/interrupt.h