Lines Matching refs:tg
18 autogroup_default.tg = &root_task_group; in autogroup_init()
24 void autogroup_free(struct task_group *tg) in autogroup_free() argument
26 kfree(tg->autogroup); in autogroup_free()
35 ag->tg->rt_se = NULL; in autogroup_destroy()
36 ag->tg->rt_rq = NULL; in autogroup_destroy()
38 sched_offline_group(ag->tg); in autogroup_destroy()
39 sched_destroy_group(ag->tg); in autogroup_destroy()
70 struct task_group *tg; in autogroup_create() local
75 tg = sched_create_group(&root_task_group); in autogroup_create()
77 if (IS_ERR(tg)) in autogroup_create()
83 ag->tg = tg; in autogroup_create()
92 free_rt_sched_group(tg); in autogroup_create()
93 tg->rt_se = root_task_group.rt_se; in autogroup_create()
94 tg->rt_rq = root_task_group.rt_rq; in autogroup_create()
96 tg->autogroup = ag; in autogroup_create()
98 sched_online_group(tg, &root_task_group); in autogroup_create()
112 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup() argument
114 if (tg != &root_task_group) in task_wants_autogroup()
217 err = sched_group_set_shares(ag->tg, prio_to_weight[nice + 20]); in proc_sched_autogroup_set_nice()
231 if (!task_group_is_autogroup(ag->tg)) in proc_sched_autogroup_show_task()
244 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path() argument
246 if (!task_group_is_autogroup(tg)) in autogroup_path()
249 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()