Lines Matching refs:tg
35 autogroup_default.tg = &root_task_group; in autogroup_init()
42 void autogroup_free(struct task_group *tg) in autogroup_free() argument
44 kfree(tg->autogroup); in autogroup_free()
53 ag->tg->rt_se = NULL; in autogroup_destroy()
54 ag->tg->rt_rq = NULL; in autogroup_destroy()
56 sched_release_group(ag->tg); in autogroup_destroy()
57 sched_destroy_group(ag->tg); in autogroup_destroy()
88 struct task_group *tg; in autogroup_create() local
93 tg = sched_create_group(&root_task_group); in autogroup_create()
94 if (IS_ERR(tg)) in autogroup_create()
100 ag->tg = tg; in autogroup_create()
109 free_rt_sched_group(tg); in autogroup_create()
110 tg->rt_se = root_task_group.rt_se; in autogroup_create()
111 tg->rt_rq = root_task_group.rt_rq; in autogroup_create()
113 tg->autogroup = ag; in autogroup_create()
115 sched_online_group(tg, &root_task_group); in autogroup_create()
129 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup() argument
131 if (tg != &root_task_group) in task_wants_autogroup()
259 err = sched_group_set_shares(ag->tg, shares); in proc_sched_autogroup_set_nice()
273 if (!task_group_is_autogroup(ag->tg)) in proc_sched_autogroup_show_task()
285 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path() argument
287 if (!task_group_is_autogroup(tg)) in autogroup_path()
290 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()