genirq: Update irq stats from NMI handlers
authorShijith Thotton <sthotton@marvell.com>
Fri, 5 Jul 2019 07:56:20 +0000 (07:56 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 6 Jul 2019 08:40:19 +0000 (10:40 +0200)
commitc09cb1293523dd786ae54a12fd88001542cba2f6
treed8844077305fe22afc3c14a56da1969153d7419f
parent9b979ac3ce0b2a3e55cd1b866eaeaed4e1c38df9
genirq: Update irq stats from NMI handlers

The NMI handlers handle_percpu_devid_fasteoi_nmi() and handle_fasteoi_nmi()
do not update the interrupt counts. Due to that the NMI interrupt count
does not show up correctly in /proc/interrupts.

Add the statistics and treat the NMI handlers in the same way as per cpu
interrupts and prevent them from updating irq_desc::tot_count as this might
be corrupted due to concurrency.

[ tglx: Massaged changelog ]

Fixes: 2dcf1fbcad35 ("genirq: Provide NMI handlers")
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1562313336-11888-1-git-send-email-sthotton@marvell.com
kernel/irq/chip.c
kernel/irq/irqdesc.c