diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-02-24 01:40:23 +0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-03-04 20:37:54 +0400 |
commit | 8f945a3325bbe0dd651e2f496a53df9b06fc6d07 (patch) | |
tree | e0d0850b5ef704b365b62eac9f8fc606f6f033f5 /include/linux | |
parent | 1aec169673d7db113c37367bbc371c2ba8109f06 (diff) | |
download | linux-8f945a3325bbe0dd651e2f496a53df9b06fc6d07.tar.xz |
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 'include/linux')
-rw-r--r-- | include/linux/kernel_stat.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 54ec7e0a7d72..c3fbda7690d6 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h @@ -51,15 +51,7 @@ DECLARE_PER_CPU(struct kernel_cpustat, kernel_cpustat); extern unsigned long long nr_context_switches(void); -#include <linux/irq.h> extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); - -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); -} - extern void kstat_incr_irq_this_cpu(unsigned int irq); static inline void kstat_incr_softirqs_this_cpu(unsigned int irq) |