|
@@ -6,6 +6,7 @@
|
|
|
* of this file for your non core code.
|
|
|
*/
|
|
|
#include <linux/irqdesc.h>
|
|
|
+#include <linux/kernel_stat.h>
|
|
|
|
|
|
#ifdef CONFIG_SPARSE_IRQ
|
|
|
# define IRQ_BITMAP_BITS (NR_IRQS + 8196)
|
|
@@ -180,3 +181,9 @@ static inline bool irqd_has_set(struct irq_data *d, unsigned int mask)
|
|
|
{
|
|
|
return d->state_use_accessors & mask;
|
|
|
}
|
|
|
+
|
|
|
+static inline void kstat_incr_irqs_this_cpu(unsigned int irq, struct irq_desc *desc)
|
|
|
+{
|
|
|
+ __this_cpu_inc(*desc->kstat_irqs);
|
|
|
+ __this_cpu_inc(kstat.irqs_sum);
|
|
|
+}
|