sched: convert nohz struct to cpumask_var_t, fix
Impact: build fix Fix the !CONFIG_SMP case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
96f874e264
commit
bf4d83f664
1 changed files with 2 additions and 0 deletions
|
@ -8349,10 +8349,12 @@ void __init sched_init(void)
|
|||
|
||||
/* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */
|
||||
alloc_bootmem_cpumask_var(&nohz_cpu_mask);
|
||||
#ifdef CONFIG_SMP
|
||||
#ifdef CONFIG_NO_HZ
|
||||
alloc_bootmem_cpumask_var(&nohz.cpu_mask);
|
||||
#endif
|
||||
alloc_bootmem_cpumask_var(&cpu_isolated_map);
|
||||
#endif /* SMP */
|
||||
|
||||
scheduler_running = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue