diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-01-22 03:38:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-22 04:18:58 -0500 |
commit | d52a61c04c6c0814ca270a088feedb126436598e (patch) | |
tree | c216da41e04b856d639cc8b85e3b495cb1e240e4 /include/linux/irq.h | |
parent | e81838d2555e77c893f720c25bfb0c0e5782ef57 (diff) |
irq: clean up irq stat methods
David Miller suggested, related to a kstat_irqs related build breakage:
> Either linux/kernel_stat.h provides the kstat_incr_irqs_this_cpu
> interface or linux/irq.h does, not both.
So move them to kernel_stat.h.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 6 |
1 files changed, 0 insertions, 6 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 * |