]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Add a kstat helper to increment irq stats
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Feb 2014 21:40:14 +0000 (21:40 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 4 Mar 2014 16:37:53 +0000 (17:37 +0100)
commit96a2971a72a9265c61cdc19e19689f38906fca0f
tree478e4cb710e6c3598451e56a3860bc3c976f857e
parent5f8d247f0bdb48d11fcdb51693db81d40a74e096
genirq: Add a kstat helper to increment irq stats

There is a common pattern all over the place:

      kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));

This results in a call to core code anyway. So provide a function
which does the same thing in core.

While at it, replace the butt ugly macro with an inline.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140223212737.422068876@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/kernel_stat.h
kernel/irq/irqdesc.c