diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index eba6a156d334..1aa840a9f585 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -8349,10 +8349,12 @@ void __init sched_init(void) | |||
8349 | 8349 | ||
8350 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ | 8350 | /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ |
8351 | alloc_bootmem_cpumask_var(&nohz_cpu_mask); | 8351 | alloc_bootmem_cpumask_var(&nohz_cpu_mask); |
8352 | #ifdef CONFIG_SMP | ||
8352 | #ifdef CONFIG_NO_HZ | 8353 | #ifdef CONFIG_NO_HZ |
8353 | alloc_bootmem_cpumask_var(&nohz.cpu_mask); | 8354 | alloc_bootmem_cpumask_var(&nohz.cpu_mask); |
8354 | #endif | 8355 | #endif |
8355 | alloc_bootmem_cpumask_var(&cpu_isolated_map); | 8356 | alloc_bootmem_cpumask_var(&cpu_isolated_map); |
8357 | #endif /* SMP */ | ||
8356 | 8358 | ||
8357 | scheduler_running = 1; | 8359 | scheduler_running = 1; |
8358 | } | 8360 | } |