sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
844 stars 79 forks source link

rusty: Use cpumask kfuncs in cpumask_intersects_domain() #328

Closed Byte-Lab closed 4 months ago

Byte-Lab commented 4 months ago

In cpumask_intersects_domain(), we check whether a given cpumask has any CPUs in common with the specified domain by looking at the const, static dom_cpumasks map. This map is only really necessary when creating the domain struct bpf_cpumask objects at scheduler load time. After that, we can just use the actual struct bpf_cpumask object embedded in the domain context. Let's use that and cpumask kfuncs instead.

This allows rusty to load with https://github.com/sched-ext/sched_ext/pull/216.