Skip to main content

build_llc_cpu_list

Function build_llc_cpu_list 

Source
fn build_llc_cpu_list(cpus: &[u32]) -> mlfq_llc_cpu_list
Expand description

Pack a CPU list into the mlfq_llc_cpu_list map value type.

If the domain has more than MLFQ_MAX_LLC_CPUS CPUs the list is left empty (nr == 0) so the dispatch path skips Tier-A for that domain and Tier-B’s full rotating window covers it instead of probing a silently truncated subset. CPUs outside MAX_CPUS are skipped, same as the BPF-side guard, and nr counts only the CPUs actually stored.