Home
last modified time | relevance | path

Searched refs:MAX_PARTS (Results 1 – 2 of 2) sorted by relevance

/linux/tools/sched_ext/
H A Dscx_qmap.h23 #define MAX_PARTS (MAX_SUB_SCHEDS + 1) /* participants: children + self */ macro
109 s32 shared_cids[MAX_PARTS]; /* the round-robin cid pool */
111 u64 rr_slots[MAX_PARTS]; /* rotation order: holder cgroup_id, 0 = self */
H A Dscx_qmap.bpf.c707 u64 holder_cgid = (pos >= 0 && pos < MAX_PARTS) ? in BPF_STRUCT_OPS()
1317 static s32 cp_range_owner[MAX_PARTS]; /* exclusive range k: its owner id ... */
1318 static s32 cp_range_end[MAX_PARTS]; /* ... and the cumulative position it ends at */
1349 for (i = 0; i < MAX_PARTS; i++) { in place_one()
1358 if (s < 0 || s >= MAX_PARTS) { in place_one()
1460 if (nr_rr < 0 || nr_rr >= MAX_PARTS) { in compute_partition()
1516 u64 cgid = pos < MAX_PARTS ? qa.part.rr_slots[pos] : 0; in account_alloc()
1552 nr_shared < 0 || nr_shared > MAX_PARTS) { in apply_partition()
1631 if (pos < 0 || pos >= MAX_PARTS) { in apply_partition()
1707 if (nr_shared < 0 || nr_shared > MAX_PARTS) { in rr_advance()