mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
17ad6ea621
commit
8c083f081d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue