scx/rust/scx_rustland_core/assets/bpf
Andrea Righi 6d2aac1591 scx_rustland_core: introduce dispatch flags
Reserve some bits of the `cpu` attribute of a task to store special
dispatch flags.

Initially, let's introduce just RL_CPU_ANY to replace the special value
NO_CPU, indicating that the task can be dispatched on any CPU,
specifically the first CPU that becomes available.

This allows to keep the CPU value assigned by the builtin idle selection
logic, that can potentially be used later for further optimizations.

Moreover, having the possibility to specify dispatch flags gives more
flexibility and it allows to map new scheduling features to such flags.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-04-23 07:13:30 +02:00
..
intf.h scx_rustland_core: introduce dispatch flags 2024-04-23 07:13:30 +02:00
main.bpf.c scx_rustland_core: introduce dispatch flags 2024-04-23 07:13:30 +02:00