mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 03:20:24 +00:00
6df4d7e0c6
Move the logic to activate the userspace scheduler to an update_idle() callback, which is called when the CPU is about to go idle. This disables the built-in idle tracking mechanism, so it allows to rely completely on the internal CPU ownership logic (via get_cpu_owner() and set_cpu_owner()) and it also allows to share the idle state with the user-space scheduler via the BPF_MAP_TYPE_ARRAY cpu_map. Moreover, when the user-space scheduler is activated, kick the idle cpu to trigger immediate dispatch and avoid bubbles in the scheduling pipeline. Signed-off-by: Andrea Righi <andrea.righi@canonical.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
meson.build | ||
rustfmt.toml |