diff options
Diffstat (limited to 'include/linux/kernel_stat.h')
-rw-r--r-- | include/linux/kernel_stat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 8b9b89085530..ad54c846911b 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
@@ -86,6 +86,7 @@ static inline unsigned int kstat_softirqs_cpu(unsigned int irq, int cpu) | |||
86 | /* | 86 | /* |
87 | * Number of interrupts per specific IRQ source, since bootup | 87 | * Number of interrupts per specific IRQ source, since bootup |
88 | */ | 88 | */ |
89 | #ifndef CONFIG_GENERIC_HARDIRQS | ||
89 | static inline unsigned int kstat_irqs(unsigned int irq) | 90 | static inline unsigned int kstat_irqs(unsigned int irq) |
90 | { | 91 | { |
91 | unsigned int sum = 0; | 92 | unsigned int sum = 0; |
@@ -96,6 +97,9 @@ static inline unsigned int kstat_irqs(unsigned int irq) | |||
96 | 97 | ||
97 | return sum; | 98 | return sum; |
98 | } | 99 | } |
100 | #else | ||
101 | extern unsigned int kstat_irqs(unsigned int irq); | ||
102 | #endif | ||
99 | 103 | ||
100 | /* | 104 | /* |
101 | * Number of interrupts per cpu, since bootup | 105 | * Number of interrupts per cpu, since bootup |