diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-20 03:50:01 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 14:52:08 (GMT) |
commit | d17a55ded3393ad3878010bb3a8243a15a8d8df5 (patch) | |
tree | 782f135f3ec8868cde9959d1670a463b45e3b24c /kernel | |
parent | fa42d10dd5e1ff373061c0526f272106512301f9 (diff) | |
download | linux-fsl-qoriq-d17a55ded3393ad3878010bb3a8243a15a8d8df5.tar.xz |
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 'kernel')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6f23059..b9d7137 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4048,9 +4048,12 @@ static inline void idle_balance(int cpu, struct rq *rq) #endif DEFINE_PER_CPU(struct kernel_stat, kstat); - EXPORT_PER_CPU_SYMBOL(kstat); +#ifdef CONFIG_HAVE_DYN_ARRAY +DEFINE_PER_CPU_DYN_ARRAY_ADDR(per_cpu__kstat_irqs, per_cpu__kstat.irqs, sizeof(unsigned int), nr_irqs, sizeof(unsigned long), NULL); +#endif + /* * Return p->sum_exec_runtime plus any more ns on the sched_clock * that have not yet been banked in case the task is currently running. |