diff options
| -rw-r--r-- | include/linux/irq.h | 6 | ||||
| -rw-r--r-- | include/linux/kernel_stat.h | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index e9a878978c85..48901e9a33b9 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
| @@ -202,12 +202,6 @@ extern struct irq_desc irq_desc[NR_IRQS]; | |||
| 202 | extern struct irq_desc *move_irq_desc(struct irq_desc *old_desc, int cpu); | 202 | extern struct irq_desc *move_irq_desc(struct irq_desc *old_desc, int cpu); |
| 203 | #endif /* CONFIG_SPARSE_IRQ */ | 203 | #endif /* CONFIG_SPARSE_IRQ */ |
| 204 | 204 | ||
| 205 | #define kstat_irqs_this_cpu(DESC) \ | ||
| 206 | ((DESC)->kstat_irqs[smp_processor_id()]) | ||
| 207 | #define kstat_incr_irqs_this_cpu(irqno, DESC) \ | ||
| 208 | ((DESC)->kstat_irqs[smp_processor_id()]++) | ||
| 209 | |||
| 210 | |||
| 211 | extern struct irq_desc *irq_to_desc_alloc_cpu(unsigned int irq, int cpu); | 205 | extern struct irq_desc *irq_to_desc_alloc_cpu(unsigned int irq, int cpu); |
| 212 | 206 | ||
| 213 | static inline struct irq_desc * | 207 | static inline struct irq_desc * |
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index a3431b164bea..0c8b89f28a95 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
| @@ -52,16 +52,19 @@ static inline void kstat_incr_irqs_this_cpu(unsigned int irq, | |||
| 52 | { | 52 | { |
| 53 | kstat_this_cpu.irqs[irq]++; | 53 | kstat_this_cpu.irqs[irq]++; |
| 54 | } | 54 | } |
| 55 | #endif | ||
| 56 | |||
| 57 | 55 | ||
| 58 | #ifndef CONFIG_GENERIC_HARDIRQS | ||
| 59 | static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) | 56 | static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) |
| 60 | { | 57 | { |
| 61 | return kstat_cpu(cpu).irqs[irq]; | 58 | return kstat_cpu(cpu).irqs[irq]; |
| 62 | } | 59 | } |
| 63 | #else | 60 | #else |
| 61 | #include <linux/irq.h> | ||
| 64 | extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); | 62 | extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); |
| 63 | #define kstat_irqs_this_cpu(DESC) \ | ||
| 64 | ((DESC)->kstat_irqs[smp_processor_id()]) | ||
| 65 | #define kstat_incr_irqs_this_cpu(irqno, DESC) \ | ||
| 66 | ((DESC)->kstat_irqs[smp_processor_id()]++) | ||
| 67 | |||
| 65 | #endif | 68 | #endif |
| 66 | 69 | ||
| 67 | /* | 70 | /* |
