aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2024-10-10 21:41:44 +0000
committerTejun Heo <[email protected]>2024-10-10 21:41:44 +0000
commit3fdb9ebcec10a91e7825b95840c5a627dabcbca7 (patch)
tree496d5031d95122310ae4ca61c848fa731c991c19 /rust/helpers/task.c
parentRevert "sched_ext: Use shorter slice while bypassing" (diff)
downloadkernel-3fdb9ebcec10a91e7825b95840c5a627dabcbca7.tar.gz
kernel-3fdb9ebcec10a91e7825b95840c5a627dabcbca7.zip
sched_ext: Start schedulers with consistent p->scx.slice values
The disable path caps p->scx.slice to SCX_SLICE_DFL. As the field is already being ignored at this stage during disable, the only effect this has is that when the next BPF scheduler is loaded, it won't see unreasonable left-over slices. Ultimately, this shouldn't matter but it's better to start in a known state. Drop p->scx.slice capping from the disable path and instead reset it to SCX_SLICE_DFL in the enable path. Signed-off-by: Tejun Heo <[email protected]> Acked-by: David Vernet <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions