diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-05-14 16:04:26 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-22 10:21:29 +0200 |
commit | 4dac0b638310d2e92f6e19958b73d4c97c9734bb (patch) | |
tree | 44db22fc5778582604c89a99dfb56a946761ed1a /kernel/sched/cpupri.h | |
parent | 944770ab54babaef29d9d1dc8189898b3ee8afcf (diff) | |
download | linux-4dac0b638310d2e92f6e19958b73d4c97c9734bb.tar.gz linux-4dac0b638310d2e92f6e19958b73d4c97c9734bb.tar.bz2 linux-4dac0b638310d2e92f6e19958b73d4c97c9734bb.zip |
sched/cpupri: Replace NR_CPUS arrays
Tejun reported that his resume was failing due to order-3 allocations
from sched_domain building.
Replace the NR_CPUS arrays in there with a dynamically allocated
array.
Reported-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-7cysnkw1gik45r864t1nkudh@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/cpupri.h')
-rw-r--r-- | kernel/sched/cpupri.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/cpupri.h b/kernel/sched/cpupri.h index f6d756173491..6b033347fdfd 100644 --- a/kernel/sched/cpupri.h +++ b/kernel/sched/cpupri.h @@ -17,7 +17,7 @@ struct cpupri_vec { struct cpupri { struct cpupri_vec pri_to_cpu[CPUPRI_NR_PRIORITIES]; - int cpu_to_pri[NR_CPUS]; + int *cpu_to_pri; }; #ifdef CONFIG_SMP |