sched/cpupri: Replace NR_CPUS arrays
authorPeter Zijlstra <peterz@infradead.org>
Wed, 14 May 2014 14:04:26 +0000 (16:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 May 2014 08:21:29 +0000 (10:21 +0200)
commit4dac0b638310d2e92f6e19958b73d4c97c9734bb
tree44db22fc5778582604c89a99dfb56a946761ed1a
parent944770ab54babaef29d9d1dc8189898b3ee8afcf
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>
kernel/sched/cpupri.c
kernel/sched/cpupri.h