summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorValentin Schneider <vschneid@redhat.com>2025-08-29 11:11:16 +0300
committerPeter Zijlstra <peterz@infradead.org>2025-09-03 11:03:13 +0300
commit2cd571245b43492867bf1b4252485f3e6647b643 (patch)
tree19dac6d002a52d6580cb90948f737e235f7cbf7f /include/linux
parent7bd291abe2da09f59dca81f35a4ec220e5e138a2 (diff)
downloadlinux-2cd571245b43492867bf1b4252485f3e6647b643.tar.xz
sched/fair: Add related data structure for task based throttle
Add related data structures for this new throttle functionality. Tesed-by: K Prateek Nayak <kprateek.nayak@amd.com> Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Aaron Lu <ziqianlu@bytedance.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev> Tested-by: Valentin Schneider <vschneid@redhat.com> Tested-by: Matteo Martelli <matteo.martelli@codethink.co.uk> Link: https://lore.kernel.org/r/20250829081120.806-2-ziqianlu@bytedance.com
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index f8188b833350..644a01bdae70 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -883,6 +883,11 @@ struct task_struct {
#ifdef CONFIG_CGROUP_SCHED
struct task_group *sched_task_group;
+#ifdef CONFIG_CFS_BANDWIDTH
+ struct callback_head sched_throttle_work;
+ struct list_head throttle_node;
+ bool throttled;
+#endif
#endif