]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: Introduce scx_sched
authorTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:10 +0000 (08:40 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 29 Apr 2025 18:40:10 +0000 (08:40 -1000)
commit48e12677738663c6ac7be6abe7b216ec74a5b6e6
tree9e6c5d0673767ff77450e326f84265b07cd955ca
parentce565f839c9e1c0952588f2b17ed4b02650f94b0
sched_ext: Introduce scx_sched

To support multiple scheduler instances, collect some of the global
variables that should be specific to a scheduler instance into the new
struct scx_sched. scx_root is the root scheduler instance and points to a
static instance of struct scx_sched. Except for an extra dereference through
the scx_root pointer, this patch makes no functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Changwoo Min <changwoo@igalia.com>
kernel/sched/ext.c
kernel/sched/ext_idle.c