Re: [PATCH v2] sched_ext: pass the initial cpu.idle state in scx_cgroup_init_args

Tejun Heo <[email protected]>
Newsgroups dev.linux.lists.sched-ext,org.kernel.vger.bpf,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.