diff options
| author | zhidao su <suzhidao@xiaomi.com> | 2025-10-11 15:16:51 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-10-14 10:17:33 -1000 |
| commit | 347ed2d566dabb06c7970fff01129c4f59995ed6 (patch) | |
| tree | 59f8cc27c12a3e93ba6fb1d73957c31a95c83a76 /rust/helpers/build_bug.c | |
| parent | bd7143e74e8ce0b35b32fa76e92d78e52cb12883 (diff) | |
sched/ext: Implement cgroup_set_idle() callback
Implement the missing cgroup_set_idle() callback that was marked as a
TODO. This allows BPF schedulers to be notified when a cgroup's idle
state changes, enabling them to adjust their scheduling behavior
accordingly.
The implementation follows the same pattern as other cgroup callbacks
like cgroup_set_weight() and cgroup_set_bandwidth(). It checks if the
BPF scheduler has implemented the callback and invokes it with the
appropriate parameters.
Fixes a spelling error in the cgroup_set_bandwidth() documentation.
tj: s/scx_cgroup_rwsem/scx_cgroup_ops_rwsem/ to fix build breakage.
Signed-off-by: zhidao su <soolaugust@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
