Skip to content
Commit 792d0018 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140223212737.422068876@linutronix.de


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 02893afd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment