summaryrefslogtreecommitdiff
path: root/include/linux/atomic
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-03-06 20:58:03 +0300
committerTejun Heo <tj@kernel.org>2026-03-06 20:58:03 +0300
commite1cccf365ef4b8927d002e424e95fd4e04e2d966 (patch)
treec6761e494dafc4ca51cd7665505bd17b409df9a8 /include/linux/atomic
parent41346d68d0aa79a86374c57164c92ce136b6b723 (diff)
downloadlinux-e1cccf365ef4b8927d002e424e95fd4e04e2d966.tar.xz
sched_ext: Move default slice to per-scheduler field
The default time slice was stored in the global scx_slice_dfl variable which was dynamically modified when entering and exiting bypass mode. With hierarchical scheduling, each scheduler instance needs its own default slice configuration so that bypass operations on one scheduler don't affect others. Move slice_dfl into struct scx_sched and update all access sites. The bypass logic now modifies the root scheduler's slice_dfl. At task initialization in init_scx_entity(), use the SCX_SLICE_DFL constant directly since the task may not yet be associated with a specific scheduler. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'include/linux/atomic')
0 files changed, 0 insertions, 0 deletions