Skip to content

Commit 0ab94c3

Browse files
WerkovPeter Zijlstra
authored andcommitted
sched: Add annotations to RT_GROUP_SCHED fields
Update comments to ease RT throttling understanding. Signed-off-by: Michal Koutný <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 87f1fb7 commit 0ab94c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/sched/sched.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -813,17 +813,17 @@ struct rt_rq {
813813

814814
#ifdef CONFIG_RT_GROUP_SCHED
815815
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 */
818818
/* Nests inside the rq lock: */
819819
raw_spinlock_t rt_runtime_lock;
820820

821821
unsigned int rt_nr_boosted;
822822

823-
struct rq *rq;
823+
struct rq *rq; /* this is always top-level rq, cache? */
824824
#endif
825825
#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 */
827827
#endif
828828
};
829829

0 commit comments

Comments
 (0)