• Y
    irq: clear kstat_irqs · 0f3c2a89
    Yinghai Lu 提交于
    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: NYinghai Lu <yinghai@kernel.org>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    0f3c2a89
chip.c 15.2 KB