summaryrefslogtreecommitdiff
path: root/include/linux/kernel_stat.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 20:50:01 -0700
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:08 +0200
commitd17a55ded3393ad3878010bb3a8243a15a8d8df5 (patch)
tree782f135f3ec8868cde9959d1670a463b45e3b24c /include/linux/kernel_stat.h
parentfa42d10dd5e1ff373061c0526f272106512301f9 (diff)
downloadlinux-3.10-d17a55ded3393ad3878010bb3a8243a15a8d8df5.tar.gz
linux-3.10-d17a55ded3393ad3878010bb3a8243a15a8d8df5.tar.bz2
linux-3.10-d17a55ded3393ad3878010bb3a8243a15a8d8df5.zip
irq: make irqs in kernel stat use per_cpu_dyn_array
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel_stat.h')
-rw-r--r--include/linux/kernel_stat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel_stat.h b/include/linux/kernel_stat.h
index cf9f40a91c9..fe1f7fe534b 100644
--- a/include/linux/kernel_stat.h
+++ b/include/linux/kernel_stat.h
@@ -28,7 +28,11 @@ struct cpu_usage_stat {
struct kernel_stat {
struct cpu_usage_stat cpustat;
+#ifdef CONFIG_HAVE_DYN_ARRAY
+ unsigned int *irqs;
+#else
unsigned int irqs[NR_IRQS];
+#endif
};
DECLARE_PER_CPU(struct kernel_stat, kstat);