mirror of
https://github.com/JakeHillion/scx.git
synced 2024-12-11 09:42:26 +00:00
scx_layered: point costc to global struct when initializing budgets
This commit is contained in:
parent
060a1662fa
commit
2b0909f9d7
@ -286,13 +286,13 @@ static void initialize_budgets(u64 refresh_intvl_ns)
|
|||||||
layer_weight_sum += layer->weight;
|
layer_weight_sum += layer->weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bpf_for(layer_id, 0, nr_layers) {
|
||||||
costc = initialize_cost(global, global, false, false, false);
|
costc = initialize_cost(global, global, false, false, false);
|
||||||
if (!costc) {
|
if (!costc) {
|
||||||
scx_bpf_error("failed to initialize global budget");
|
scx_bpf_error("failed to initialize global budget");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bpf_for(layer_id, 0, nr_layers) {
|
|
||||||
layer = &layers[layer_id];
|
layer = &layers[layer_id];
|
||||||
if (!layer) {
|
if (!layer) {
|
||||||
scx_bpf_error("failed to lookup layer %d", layer_id);
|
scx_bpf_error("failed to lookup layer %d", layer_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user