]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq: Update irq stats from NMI handlers
authorShijith Thotton <sthotton@marvell.com>
Fri, 5 Jul 2019 07:56:20 +0000 (07:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:50 +0000 (09:12 +0200)
commitf260fc0c82267caec5d4bf8c53ae377b8454a6f6
treec1a2cb34d4c580015fb61670efa7997e4dc88503
parent0eb799964db313c8b13a39a0c291da91c416daf3
genirq: Update irq stats from NMI handlers

[ Upstream commit c09cb1293523dd786ae54a12fd88001542cba2f6 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/irq/chip.c
kernel/irq/irqdesc.c