]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Do not construct nor expose RT_GROUP_SCHED structures if disabled
authorMichal Koutný <mkoutny@suse.com>
Mon, 10 Mar 2025 17:04:39 +0000 (18:04 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 8 Apr 2025 18:55:54 +0000 (20:55 +0200)
commitd6809c2f606c14f9e95be87d75a576901d2fa050
tree3a53b035d4b56d3739edccaf707d136aa8eb3356
parent277e0909754e9f3c82def97150d2f3ea700098f1
sched: Do not construct nor expose RT_GROUP_SCHED structures if disabled

Thanks to kernel cmdline being available early, before any
cgroup hierarchy exists, we can achieve the RT_GROUP_SCHED boottime
disabling goal by simply skipping any creation (and destruction) of
RT_GROUP data and its exposure via RT attributes.

We can do this thanks to previously placed runtime guards that would
redirect all operations to root_task_group's data when RT_GROUP_SCHED
disabled.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250310170442.504716-8-mkoutny@suse.com
kernel/sched/core.c
kernel/sched/rt.c