Commit 8c083f08 authored by Rusty Russell's avatar Rusty Russell Committed by Ingo Molnar

cpumask: remove cpumask allocation from idle_balance, fix

Impact: fix boot crash

Fix typo in the size calculation.
Reported-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
LKML-Reference: <alpine.DEB.2.00.0903181729360.31583@gandalf.stny.rr.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 17ad6ea6
...@@ -8297,7 +8297,7 @@ void __init sched_init(void) ...@@ -8297,7 +8297,7 @@ void __init sched_init(void)
alloc_size *= 2; alloc_size *= 2;
#endif #endif
#ifdef CONFIG_CPUMASK_OFFSTACK #ifdef CONFIG_CPUMASK_OFFSTACK
alloc_size *= num_possible_cpus() * cpumask_size(); alloc_size += num_possible_cpus() * cpumask_size();
#endif #endif
/* /*
* As sched_init() is called before page_alloc is setup, * As sched_init() is called before page_alloc is setup,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment