Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

sched: Add annotations to RT_GROUP_SCHED fields

Update comments to ease RT throttling understanding.

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250310170442.504716-10-mkoutny@suse.com

authored by

Michal Koutný and committed by
Peter Zijlstra
0ab94c32 87f1fb77

+4 -4
+4 -4
kernel/sched/sched.h
··· 813 813 814 814 #ifdef CONFIG_RT_GROUP_SCHED 815 815 int rt_throttled; 816 - u64 rt_time; 817 - u64 rt_runtime; 816 + u64 rt_time; /* consumed RT time, goes up in update_curr_rt */ 817 + u64 rt_runtime; /* allotted RT time, "slice" from rt_bandwidth, RT sharing/balancing */ 818 818 /* Nests inside the rq lock: */ 819 819 raw_spinlock_t rt_runtime_lock; 820 820 821 821 unsigned int rt_nr_boosted; 822 822 823 - struct rq *rq; 823 + struct rq *rq; /* this is always top-level rq, cache? */ 824 824 #endif 825 825 #ifdef CONFIG_CGROUP_SCHED 826 - struct task_group *tg; 826 + struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runnable entities */ 827 827 #endif 828 828 }; 829 829