mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 03:20:24 +00:00
scx_layered: Fix layer timeslice not being applied
Fix a small bug where the layer timeslice is not applied. Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
This commit is contained in:
parent
3e2e78a9ec
commit
e04b612688
@ -570,7 +570,7 @@ s32 BPF_STRUCT_OPS(layered_select_cpu, struct task_struct *p, s32 prev_cpu, u64
|
||||
if (cpu >= 0) {
|
||||
lstat_inc(LSTAT_SEL_LOCAL, layer, cctx);
|
||||
u64 layer_slice_ns = layer->slice_ns > 0 ? layer->slice_ns : slice_ns;
|
||||
scx_bpf_dispatch(p, SCX_DSQ_LOCAL, slice_ns, 0);
|
||||
scx_bpf_dispatch(p, SCX_DSQ_LOCAL, layer_slice_ns, 0);
|
||||
return cpu;
|
||||
} else {
|
||||
return prev_cpu;
|
||||
|
Loading…
Reference in New Issue
Block a user