From: Rusty Russell Date: Thu, 19 Mar 2009 04:52:20 +0000 (+1030) Subject: cpumask: remove cpumask allocation from idle_balance, fix X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=8c083f081d0014057901c68a0a3e0f8ca7ac8d23;p=openwrt%2Fstaging%2Fblogic.git cpumask: remove cpumask allocation from idle_balance, fix Impact: fix boot crash Fix typo in the size calculation. Reported-by: Ingo Molnar Signed-off-by: Rusty Russell LKML-Reference: Signed-off-by: Ingo Molnar --- 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) alloc_size *= 2; #endif #ifdef CONFIG_CPUMASK_OFFSTACK - alloc_size *= num_possible_cpus() * cpumask_size(); + alloc_size += num_possible_cpus() * cpumask_size(); #endif /* * As sched_init() is called before page_alloc is setup,