mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-25 11:00:24 +00:00
Merge pull request #956 from hodgesds/layered-optimize-v1
scx_layered: Remove high fallback dsq budget check
This commit is contained in:
commit
8f89fc6876
@ -1395,16 +1395,6 @@ void layered_dispatch_no_topo(s32 cpu, struct task_struct *prev)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* If one of the fallback DSQs has the most budget then consume from
|
||||
* it to prevent starvation.
|
||||
*/
|
||||
if (has_pref_fallback_budget(costc)) {
|
||||
dsq_id = budget_id_to_fallback_dsq(costc->pref_budget);
|
||||
if (scx_bpf_consume(dsq_id))
|
||||
return;
|
||||
}
|
||||
|
||||
/* consume preempting layers first */
|
||||
bpf_for(idx, 0, nr_layers) {
|
||||
layer_idx = rotate_layer_id(costc->pref_layer, idx);
|
||||
@ -1678,19 +1668,6 @@ void BPF_STRUCT_OPS(layered_dispatch, s32 cpu, struct task_struct *prev)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* If one of the fallback DSQs has the most budget then consume from it
|
||||
* to prevent starvation.
|
||||
*/
|
||||
if (has_pref_fallback_budget(costc)) {
|
||||
dsq_id = budget_id_to_fallback_dsq(costc->pref_budget);
|
||||
trace("COST consuming fallback %lld", dsq_id);
|
||||
if (dsq_id > LO_FALLBACK_DSQ)
|
||||
scx_bpf_error("invalid fallback dsq %lld", dsq_id);
|
||||
if (scx_bpf_consume(dsq_id))
|
||||
return;
|
||||
}
|
||||
|
||||
/* consume preempting layers first */
|
||||
if (consume_preempting(costc, cctx->cache_idx) == 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user