]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Rearrange and fix show_interrupts() for sparse irq_descs
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 13 Oct 2009 19:45:00 +0000 (19:45 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Oct 2009 06:21:31 +0000 (17:21 +1100)
commit9e9717354a96c45de6a5b5b5015e8eea9c245a2c
tree4d2cb0c572438c088d062acd83c7f2dbb8055c27
parenta9e148f2973f56f54e55297612e2a8c62c4462f6
powerpc: Rearrange and fix show_interrupts() for sparse irq_descs

Move the default case out of the if, ie. when we're just displaying
an irq. And consolidate all the odd cases at the top, ie. printing
the header and footer.

And in the process cope with sparse irq_descs.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c