Lines Matching refs:tg
16 autogroup_default.tg = &root_task_group; in autogroup_init()
22 void autogroup_free(struct task_group *tg) in autogroup_free() argument
24 kfree(tg->autogroup); in autogroup_free()
33 ag->tg->rt_se = NULL; in autogroup_destroy()
34 ag->tg->rt_rq = NULL; in autogroup_destroy()
36 sched_offline_group(ag->tg); in autogroup_destroy()
37 sched_destroy_group(ag->tg); in autogroup_destroy()
68 struct task_group *tg; in autogroup_create() local
73 tg = sched_create_group(&root_task_group); in autogroup_create()
75 if (IS_ERR(tg)) in autogroup_create()
81 ag->tg = tg; in autogroup_create()
90 free_rt_sched_group(tg); in autogroup_create()
91 tg->rt_se = root_task_group.rt_se; in autogroup_create()
92 tg->rt_rq = root_task_group.rt_rq; in autogroup_create()
94 tg->autogroup = ag; in autogroup_create()
96 sched_online_group(tg, &root_task_group); in autogroup_create()
110 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup() argument
112 if (tg != &root_task_group) in task_wants_autogroup()
215 err = sched_group_set_shares(ag->tg, prio_to_weight[nice + 20]); in proc_sched_autogroup_set_nice()
229 if (!task_group_is_autogroup(ag->tg)) in proc_sched_autogroup_show_task()
242 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path() argument
244 if (!task_group_is_autogroup(tg)) in autogroup_path()
247 return snprintf(buf, buflen, "%s-%ld", "/autogroup", tg->autogroup->id); in autogroup_path()