diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-15 09:27:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:15 -0400 |
commit | d6c88a507ef0b6afdb013cba4e7804ba7324d99a (patch) | |
tree | cdc4041acc212585e3920ad50bf2574cec04076d /include/linux/kernel_stat.h | |
parent | ee32c9732244bde4b9b59eeac2814c23e2b71f8d (diff) |
genirq: revert dynarray
Revert the dynarray changes. They need more thought and polishing.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/kernel_stat.h')
-rw-r--r-- | include/linux/kernel_stat.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h index 21249d8c1293..a9d0d360b776 100644 --- a/include/linux/kernel_stat.h +++ b/include/linux/kernel_stat.h | |||
@@ -28,9 +28,7 @@ struct cpu_usage_stat { | |||
28 | 28 | ||
29 | struct kernel_stat { | 29 | struct kernel_stat { |
30 | struct cpu_usage_stat cpustat; | 30 | struct cpu_usage_stat cpustat; |
31 | #ifndef CONFIG_HAVE_DYN_ARRAY | ||
32 | unsigned int irqs[NR_IRQS]; | 31 | unsigned int irqs[NR_IRQS]; |
33 | #endif | ||
34 | }; | 32 | }; |
35 | 33 | ||
36 | DECLARE_PER_CPU(struct kernel_stat, kstat); | 34 | DECLARE_PER_CPU(struct kernel_stat, kstat); |
@@ -41,20 +39,18 @@ DECLARE_PER_CPU(struct kernel_stat, kstat); | |||
41 | 39 | ||
42 | extern unsigned long long nr_context_switches(void); | 40 | extern unsigned long long nr_context_switches(void); |
43 | 41 | ||
44 | #ifndef CONFIG_HAVE_DYN_ARRAY | 42 | struct irq_desc; |
45 | #define kstat_irqs_this_cpu(irq) \ | ||
46 | (kstat_this_cpu.irqs[irq]) | ||
47 | #endif | ||
48 | 43 | ||
44 | static inline void kstat_incr_irqs_this_cpu(unsigned int irq, | ||
45 | struct irq_desc *desc) | ||
46 | { | ||
47 | kstat_this_cpu.irqs[irq]++; | ||
48 | } | ||
49 | 49 | ||
50 | #ifndef CONFIG_HAVE_DYN_ARRAY | ||
51 | static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) | 50 | static inline unsigned int kstat_irqs_cpu(unsigned int irq, int cpu) |
52 | { | 51 | { |
53 | return kstat_cpu(cpu).irqs[irq]; | 52 | return kstat_cpu(cpu).irqs[irq]; |
54 | } | 53 | } |
55 | #else | ||
56 | extern unsigned int kstat_irqs_cpu(unsigned int irq, int cpu); | ||
57 | #endif | ||
58 | 54 | ||
59 | /* | 55 | /* |
60 | * Number of interrupts per specific IRQ source, since bootup | 56 | * Number of interrupts per specific IRQ source, since bootup |