Messages in this thread Patch in this message | | | Date | Thu, 19 Mar 2009 13:03:25 GMT | From | Rusty Russell <> | Subject | [tip:cpus4096] cpumask: remove cpumask allocation from idle_balance, fix |
| |
Commit-ID: 8c083f081d0014057901c68a0a3e0f8ca7ac8d23 Gitweb: http://git.kernel.org/tip/8c083f081d0014057901c68a0a3e0f8ca7ac8d23 Author: Rusty Russell <rusty@rustcorp.com.au> AuthorDate: Thu, 19 Mar 2009 15:22:20 +1030 Committer: Ingo Molnar <mingo@elte.hu> CommitDate: Thu, 19 Mar 2009 13:49:44 +0100
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>
--- kernel/sched.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c index 48862d4..11dd527 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,
| |