Searched refs:tg (Results 1 – 7 of 7) sorted by relevance
/kernel/sched/ |
D | autogroup.h | 11 struct task_group *tg; member 18 extern void autogroup_free(struct task_group *tg); 20 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument 22 return !!tg->autogroup; in task_group_is_autogroup() 25 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg); 28 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group() argument 32 if (enabled && task_wants_autogroup(p, tg)) in autogroup_task_group() 33 return p->signal->autogroup->tg; in autogroup_task_group() 35 return tg; in autogroup_task_group() 38 extern int autogroup_path(struct task_group *tg, char *buf, int buflen); [all …]
|
D | autogroup.c | 14 autogroup_default.tg = &root_task_group; in autogroup_init() 20 void autogroup_free(struct task_group *tg) in autogroup_free() argument 22 kfree(tg->autogroup); in autogroup_free() 31 ag->tg->rt_se = NULL; in autogroup_destroy() 32 ag->tg->rt_rq = NULL; in autogroup_destroy() 34 sched_release_group(ag->tg); in autogroup_destroy() 35 sched_destroy_group(ag->tg); in autogroup_destroy() 66 struct task_group *tg; in autogroup_create() local 71 tg = sched_create_group(&root_task_group); in autogroup_create() 72 if (IS_ERR(tg)) in autogroup_create() [all …]
|
D | rt.c | 147 void unregister_rt_sched_group(struct task_group *tg) in unregister_rt_sched_group() argument 149 if (tg->rt_se) in unregister_rt_sched_group() 150 destroy_rt_bandwidth(&tg->rt_bandwidth); in unregister_rt_sched_group() 154 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument 159 if (tg->rt_rq) in free_rt_sched_group() 160 kfree(tg->rt_rq[i]); in free_rt_sched_group() 161 if (tg->rt_se) in free_rt_sched_group() 162 kfree(tg->rt_se[i]); in free_rt_sched_group() 165 kfree(tg->rt_rq); in free_rt_sched_group() 166 kfree(tg->rt_se); in free_rt_sched_group() [all …]
|
D | core.c | 1226 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument 1738 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local 1740 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg() 1742 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg() 4567 struct task_group *tg; in sched_cgroup_fork() local 4568 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_cgroup_fork() 4570 tg = autogroup_task_group(p, tg); in sched_cgroup_fork() 4571 p->sched_task_group = tg; in sched_cgroup_fork() 9968 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument 9975 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group() [all …]
|
D | sched.h | 483 extern int tg_nop(struct task_group *tg, void *data); 485 extern void free_fair_sched_group(struct task_group *tg); 486 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent); 487 extern void online_fair_sched_group(struct task_group *tg); 488 extern void unregister_fair_sched_group(struct task_group *tg); 489 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, 498 extern void unregister_rt_sched_group(struct task_group *tg); 499 extern void free_rt_sched_group(struct task_group *tg); 500 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent); 501 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, [all …]
|
D | fair.c | 286 if (cfs_rq && task_group_is_autogroup(cfs_rq->tg)) in cfs_rq_tg_path() 287 autogroup_path(cfs_rq->tg, path, len); in cfs_rq_tg_path() 288 else if (cfs_rq && cfs_rq->tg->css.cgroup) in cfs_rq_tg_path() 289 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path() 313 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq() 314 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq() 322 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq() 332 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq() 439 static int tg_is_idle(struct task_group *tg) in tg_is_idle() argument 441 return tg->idle > 0; in tg_is_idle() [all …]
|
D | debug.c | 448 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument 450 struct sched_entity *se = tg->se[cpu]; in print_cfs_group_stats() 495 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path() argument 497 if (autogroup_path(tg, path, plen)) in task_group_path() 500 cgroup_path(tg->css.cgroup, path, plen); in task_group_path() 510 #define SEQ_printf_task_group_path(m, tg, fmt...) \ argument 513 task_group_path(tg, group_path, sizeof(group_path)); \ 519 task_group_path(tg, buf, bufend - buf); \ 586 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq() 641 atomic_long_read(&cfs_rq->tg->load_avg)); in print_cfs_rq() [all …]
|