aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2009-03-19 15:22:20 +1030
committerIngo Molnar <[email protected]>2009-03-19 13:49:44 +0100
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 <[email protected]> Signed-off-by: Rusty Russell <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-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)
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,