irq: clear kstat_irqs
commit0f3c2a89c1451cdf6328f99977bd9decd4f708e1
authorYinghai Lu <yinghai@kernel.org>
Mon, 9 Feb 2009 00:18:03 +0000 (8 16:18 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 07:55:08 +0000 (9 08:55 +0100)
tree5f06396e409410e5d506f72fe6abebc376a5e689
parent4d87c5bec5389625d80b71108795aecf82cd670d
irq: clear kstat_irqs

Impact: get correct kstat_irqs [/proc/interrupts] for msi/msi-x etc

need to call clear_kstat_irqs(), so when we reuse that irq_desc,
we get correct kstat in /proc/interrupts.

This makes /proc/interrupts not have <NULL> entries.

Don't need to worry about arch that doesn't support genirq, because they
will not call dynamic_irq_cleanup().

v2: simplify and make clear_kstat_irqs more robust

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/chip.c
kernel/irq/handle.c
kernel/irq/internals.h