diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2014-02-23 16:40:23 -0500 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2014-03-04 11:37:54 -0500 |
| commit | 8f945a3325bbe0dd651e2f496a53df9b06fc6d07 (patch) | |
| tree | e0d0850b5ef704b365b62eac9f8fc606f6f033f5 /kernel | |
| parent | 1aec169673d7db113c37367bbc371c2ba8109f06 (diff) | |
genirq: Move kstat_incr_irqs_this_cpu() to core
No more users outside the core code. Put it into the poison
cabinet. That also gets rid of the linux/irq.h include in
kernel_stat.h
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140223212739.124207133@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/irq/internals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index d61ac29e32d0..17b671713d5f 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | * of this file for your non core code. | 6 | * of this file for your non core code. |
| 7 | */ | 7 | */ |
| 8 | #include <linux/irqdesc.h> | 8 | #include <linux/irqdesc.h> |
| 9 | #include <linux/kernel_stat.h> | ||
| 9 | 10 | ||
| 10 | #ifdef CONFIG_SPARSE_IRQ | 11 | #ifdef CONFIG_SPARSE_IRQ |
| 11 | # define IRQ_BITMAP_BITS (NR_IRQS + 8196) | 12 | # define IRQ_BITMAP_BITS (NR_IRQS + 8196) |
| @@ -180,3 +181,9 @@ static inline bool irqd_has_set(struct irq_data *d, unsigned int mask) | |||
| 180 | { | 181 | { |
| 181 | return d->state_use_accessors & mask; | 182 | return d->state_use_accessors & mask; |
| 182 | } | 183 | } |
| 184 | |||
| 185 | static inline void kstat_incr_irqs_this_cpu(unsigned int irq, struct irq_desc *desc) | ||
| 186 | { | ||
| 187 | __this_cpu_inc(*desc->kstat_irqs); | ||
| 188 | __this_cpu_inc(kstat.irqs_sum); | ||
| 189 | } | ||
