aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index cae6700bedb3..bf21adb6c9fc 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -9535,13 +9535,13 @@ void __init sched_init(void)
9535 current->sched_class = &fair_sched_class; 9535 current->sched_class = &fair_sched_class;
9536 9536
9537 /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */ 9537 /* Allocate the nohz_cpu_mask if CONFIG_CPUMASK_OFFSTACK */
9538 alloc_cpumask_var(&nohz_cpu_mask, GFP_NOWAIT); 9538 zalloc_cpumask_var(&nohz_cpu_mask, GFP_NOWAIT);
9539#ifdef CONFIG_SMP 9539#ifdef CONFIG_SMP
9540#ifdef CONFIG_NO_HZ 9540#ifdef CONFIG_NO_HZ
9541 alloc_cpumask_var(&nohz.cpu_mask, GFP_NOWAIT); 9541 zalloc_cpumask_var(&nohz.cpu_mask, GFP_NOWAIT);
9542 alloc_cpumask_var(&nohz.ilb_grp_nohz_mask, GFP_NOWAIT); 9542 alloc_cpumask_var(&nohz.ilb_grp_nohz_mask, GFP_NOWAIT);
9543#endif 9543#endif
9544 alloc_cpumask_var(&cpu_isolated_map, GFP_NOWAIT); 9544 zalloc_cpumask_var(&cpu_isolated_map, GFP_NOWAIT);
9545#endif /* SMP */ 9545#endif /* SMP */
9546 9546
9547 perf_event_init(); 9547 perf_event_init();