Re: [PATCH] sched/fair: Update nohz.next_balance for newly NOHZ-idle CPUs

From: Dietmar Eggemann
Date: Thu Jul 15 2021 - 08:33:56 EST


On 14/07/2021 13:39, Valentin Schneider wrote:

[...]

> @@ -8942,6 +8946,10 @@ void __init sched_init(void)
> cpumask_size(), GFP_KERNEL, cpu_to_node(i));
> per_cpu(select_idle_mask, i) = (cpumask_var_t)kzalloc_node(
> cpumask_size(), GFP_KERNEL, cpu_to_node(i));
> +#ifdef CONFIG_NOHZ_COMMON
> + per_cpu(nohz_balance_mask, i) = (cpumask_var_t)kzalloc_node(
> + cpumask_size(), GFP_KERNEL, cpu_to_node(i));
> +#endif /* CONFIG_NOHZ_COMMON */
> }
> #endif /* CONFIG_CPUMASK_OFFSTACK */

s/CONFIG_NOHZ_COMMON/CONFIG_NO_HZ_COMMON

Otherwise CONFIG_CPUMASK_OFFSTACK system will have issues.

[...]