diff options
Diffstat (limited to 'include/linux/kernel_stat.h')
-rw-r--r-- | include/linux/kernel_stat.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 51c72be4a7c3..ecbc52f9ff77 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <linux/sched.h> | 9 | #include <linux/sched.h> |
10 | #include <linux/vtime.h> | 10 | #include <linux/vtime.h> |
11 | #include <asm/irq.h> | 11 | #include <asm/irq.h> |
12 | #include <asm/cputime.h> | 12 | #include <linux/cputime.h> |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * 'kernel_stat.h' contains the definitions needed for doing | 15 | * 'kernel_stat.h' contains the definitions needed for doing |
@@ -51,14 +51,8 @@ DECLARE_PER_CPU(struct kernel_cpustat, kernel_cpustat); | |||
51 | 51 | ||
52 | extern unsigned long long nr_context_switches(void); | 52 | extern unsigned long long nr_context_switches(void); |
53 | 53 | ||
54 | #include <linux/irq.h> | ||
55 | extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); | 54 | extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); |
56 | 55 | extern void kstat_incr_irq_this_cpu(unsigned int irq); | |
57 | #define kstat_incr_irqs_this_cpu(irqno, DESC) \ | ||
58 | do { \ | ||
59 | __this_cpu_inc(*(DESC)->kstat_irqs); \ | ||
60 | __this_cpu_inc(kstat.irqs_sum); \ | ||
61 | } while (0) | ||
62 | 56 | ||
63 | static inline void kstat_incr_softirqs_this_cpu(unsigned int irq) | 57 | static inline void kstat_incr_softirqs_this_cpu(unsigned int irq) |
64 | { | 58 | { |