• Yinghai Lu's avatar
    irq: clear kstat_irqs · 0f3c2a89
    Yinghai Lu authored
    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: default avatarYinghai Lu <yinghai@kernel.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    0f3c2a89
internals.h 2.17 KB