Re: [PATCH v2] sched_ext: pass the initial cpu.idle state in scx_cgroup_init_args
From: Tejun Heo
Date: Mon Aug 24 2026 - 12:55:05 EST
Hello, Tao.
On Mon, Aug 24, 2026 at 10:28:16PM +0800, Tao Cui wrote:
> +
> + /* whether the cgroup is configured idle via cpu.idle */
> + bool idle;
In sched_ext, a bare "idle" reads as CPU idle state (ops.update_idle(),
idle cpumasks, scx_bpf_pick_idle_cpu()). cpu.idle is the cgroup analog
of the SCHED_IDLE policy, so please name the field sched_idle instead.
Renaming tg->scx.idle to match would be nice too.
Thanks.
--
tejun