aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-03-19 00:52:20 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-19 08:49:44 -0400
commit8c083f081d0014057901c68a0a3e0f8ca7ac8d23 (patch)
tree59203b4876eaca93a6f5f1d62e711bda35ff35c8
parent17ad6ea621b1c7952ebd7330ce65de26b6ee9cca (diff)
cpumask: remove cpumask allocation from idle_balance, fix
Impact: fix boot crash Fix typo in the size calculation. Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> LKML-Reference: <alpine.DEB.2.00.0903181729360.31583@gandalf.stny.rr.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 48862d418bed..11dd52780adb 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8297,7 +8297,7 @@ void __init sched_init(void)
8297 alloc_size *= 2; 8297 alloc_size *= 2;
8298#endif 8298#endif
8299#ifdef CONFIG_CPUMASK_OFFSTACK 8299#ifdef CONFIG_CPUMASK_OFFSTACK
8300 alloc_size *= num_possible_cpus() * cpumask_size(); 8300 alloc_size += num_possible_cpus() * cpumask_size();
8301#endif 8301#endif
8302 /* 8302 /*
8303 * As sched_init() is called before page_alloc is setup, 8303 * As sched_init() is called before page_alloc is setup,