s390/irq: improve displayed interrupt order in /proc/interrupts
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Tue, 22 Jul 2014 14:58:52 +0000 (16:58 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 28 Jul 2014 08:02:36 +0000 (10:02 +0200)
commite2213e04c1b1e44a09a9d05b79809b7e63c9217e
tree9b049b184a56d4f635caeaf85edf28df39459d90
parentdc295880c6752076f8b94ba3885d0bfff09e3e82
s390/irq: improve displayed interrupt order in /proc/interrupts

Rework the irqclass_main_desc and irqclass_sub_desc data structures which
are used to report detaild IRQ statistics in /proc/interrupts.  When
called from the procfs ops, the entries in the structures are processed
one by one.

The index of an IRQ in the structures is identical to its definition in
the "enum interruption_class".   To control and (re)order the displayed
sequence, introduce an irq member in each entry.  This helps to display
related IRQs together without changing the assigned number in the
interruption_class enumeration.  That means, adding and displaying new
IRQs are independent.
Finally, this new behavior improves to maintain a kernel ABI.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/irq.c