Lines Matching refs:tg
35 autogroup_default.tg = &root_task_group;
42 void autogroup_free(struct task_group *tg)
44 kfree(tg->autogroup);
53 ag->tg->rt_se = NULL;
54 ag->tg->rt_rq = NULL;
56 sched_release_group(ag->tg);
57 sched_destroy_group(ag->tg);
88 struct task_group *tg;
93 tg = sched_create_group(&root_task_group);
94 if (IS_ERR(tg))
100 ag->tg = tg;
109 free_rt_sched_group(tg);
110 tg->rt_se = root_task_group.rt_se;
111 tg->rt_rq = root_task_group.rt_rq;
113 tg->autogroup = ag;
115 sched_online_group(tg, &root_task_group);
129 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg)
131 if (tg != &root_task_group)
139 * to avoid autogroup->tg, so we abuse PF_EXITING flag for this case.
176 * this process can already run with task_group() == prev->tg or we can
259 err = sched_group_set_shares(ag->tg, shares);
273 if (!task_group_is_autogroup(ag->tg))
285 int autogroup_path(struct task_group *tg, char *buf, int buflen)
287 if (!task_group_is_autogroup(tg))
290 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id);