]> bbs.cooldavid.org Git - net-next-2.6.git/commit
powerpc: Rework /proc/interrupts
authorAnton Blanchard <anton@samba.org>
Sun, 31 Jan 2010 20:33:18 +0000 (20:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 17 Feb 2010 03:02:48 +0000 (14:02 +1100)
commitc86845ede8b643ca025aec277dec1892d0ccac01
treef8c79ef42af9866f37de9287535f6c801cab8b36
parentfda9d86100e0b412d0c8a16abe0651c8c8e39e81
powerpc: Rework /proc/interrupts

On a large machine I noticed the columns of /proc/interrupts failed to line up
with the header after CPU9. At sufficiently large numbers of CPUs it becomes
impossible to line up the CPU number with the counts.

While fixing this I noticed x86 has a number of updates that we may as well
pull in. On PowerPC we currently omit an interrupt completely if there is no
active handler, whereas on x86 it is printed if there is a non zero count.

The x86 code also spaces the first column correctly based on nr_irqs.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c