]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/debug: Stop and start server based on if it was active
authorJoel Fernandes <joelagnelf@nvidia.com>
Mon, 26 Jan 2026 09:59:01 +0000 (10:59 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 3 Feb 2026 11:04:17 +0000 (12:04 +0100)
commit68ec89d0e99156803bdea3c986c0198624e40ea2
tree8db1e665d7f24dddecbc5ee73ca7de1c541383eb
parent6080fb211672aec6ce8f2f5a2e0b4eae736f2027
sched/debug: Stop and start server based on if it was active

Currently the DL server interface for applying parameters checks
CFS-internals to identify if the server is active. This is error-prone
and makes it difficult when adding new servers in the future.

Fix it, by using dl_server_active() which is also used by the DL server
code to determine if the DL server was started.

Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juri Lelli <juri.lelli@redhat.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Tejun Heo <tj@kernel.org>
Tested-by: Christian Loehle <christian.loehle@arm.com>
Link: https://patch.msgid.link/20260126100050.3854740-4-arighi@nvidia.com
kernel/sched/debug.c