summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorzhidao su <suzhidao@xiaomi.com>2025-10-11 10:16:51 +0300
committerTejun Heo <tj@kernel.org>2025-10-14 23:17:33 +0300
commit347ed2d566dabb06c7970fff01129c4f59995ed6 (patch)
tree59f8cc27c12a3e93ba6fb1d73957c31a95c83a76 /include/linux
parentbd7143e74e8ce0b35b32fa76e92d78e52cb12883 (diff)
downloadlinux-347ed2d566dabb06c7970fff01129c4f59995ed6.tar.xz
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 'include/linux')
-rw-r--r--include/linux/sched/ext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched/ext.h b/include/linux/sched/ext.h
index d82b7a9b0658..9848aeab2786 100644
--- a/include/linux/sched/ext.h
+++ b/include/linux/sched/ext.h
@@ -228,6 +228,7 @@ struct scx_task_group {
u64 bw_period_us;
u64 bw_quota_us;
u64 bw_burst_us;
+ bool idle;
#endif
};