sched: convert local_cpu_mask to cpumask_var_t.
Impact: (future) size reduction for large NR_CPUS. Dynamically allocating cpumasks (when CONFIG_CPUMASK_OFFSTACK) saves space for small nr_cpu_ids but big CONFIG_NR_CPUS. cpumask_var_t is just a struct cpumask for !CONFIG_CPUMASK_OFFSTACK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
24600ce89a
commit
0e3900e6d3
@@ -8018,6 +8018,7 @@ void __init sched_init_smp(void)
|
||||
free_cpumask_var(non_isolated_cpus);
|
||||
|
||||
alloc_cpumask_var(&fallback_doms, GFP_KERNEL);
|
||||
init_sched_rt_class();
|
||||
}
|
||||
#else
|
||||
void __init sched_init_smp(void)
|
||||
|
Reference in New Issue
Block a user