Home
last modified time | relevance | path

Searched refs:tg (Results 1 – 7 of 7) sorted by relevance

/kernel/sched/
Dautogroup.h14 struct task_group *tg; member
21 extern void autogroup_free(struct task_group *tg);
23 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup() argument
25 return !!tg->autogroup; in task_group_is_autogroup()
28 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
31 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group() argument
36 if (enabled && task_wants_autogroup(p, tg)) in autogroup_task_group()
37 return p->signal->autogroup->tg; in autogroup_task_group()
39 return tg; in autogroup_task_group()
42 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
[all …]
Dautogroup.c35 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()
[all …]
Drt.c198 void unregister_rt_sched_group(struct task_group *tg) in unregister_rt_sched_group() argument
200 if (tg->rt_se) in unregister_rt_sched_group()
201 destroy_rt_bandwidth(&tg->rt_bandwidth); in unregister_rt_sched_group()
205 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group() argument
210 if (tg->rt_rq) in free_rt_sched_group()
211 kfree(tg->rt_rq[i]); in free_rt_sched_group()
212 if (tg->rt_se) in free_rt_sched_group()
213 kfree(tg->rt_se[i]); in free_rt_sched_group()
216 kfree(tg->rt_rq); in free_rt_sched_group()
217 kfree(tg->rt_se); in free_rt_sched_group()
[all …]
Dcore.c1284 int tg_nop(struct task_group *tg, void *data) in tg_nop() argument
1774 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() local
1776 uclamp_se_set(&tg->uclamp_req[UCLAMP_MIN], in uclamp_update_root_tg()
1778 uclamp_se_set(&tg->uclamp_req[UCLAMP_MAX], in uclamp_update_root_tg()
4823 struct task_group *tg; in sched_cgroup_fork() local
4824 tg = container_of(kargs->cset->subsys[cpu_cgrp_id], in sched_cgroup_fork()
4826 tg = autogroup_task_group(p, tg); in sched_cgroup_fork()
4827 p->sched_task_group = tg; in sched_cgroup_fork()
10324 static inline void alloc_uclamp_sched_group(struct task_group *tg, in alloc_uclamp_sched_group() argument
10331 uclamp_se_set(&tg->uclamp_req[clamp_id], in alloc_uclamp_sched_group()
[all …]
Dsched.h465 extern int tg_nop(struct task_group *tg, void *data);
467 extern void free_fair_sched_group(struct task_group *tg);
468 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
469 extern void online_fair_sched_group(struct task_group *tg);
470 extern void unregister_fair_sched_group(struct task_group *tg);
471 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
480 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
483 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us);
484 extern int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us);
485 extern long sched_group_rt_runtime(struct task_group *tg);
[all …]
Dfair.c374 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
375 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq()
383 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq()
393 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq()
500 static int tg_is_idle(struct task_group *tg) in tg_is_idle() argument
502 return tg->idle > 0; in tg_is_idle()
548 static inline int tg_is_idle(struct task_group *tg) in tg_is_idle() argument
3437 struct task_group *tg = cfs_rq->tg; in calc_group_shares() local
3439 tg_shares = READ_ONCE(tg->shares); in calc_group_shares()
3443 tg_weight = atomic_long_read(&tg->load_avg); in calc_group_shares()
[all …]
Ddebug.c449 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() argument
451 struct sched_entity *se = tg->se[cpu]; in print_cfs_group_stats()
501 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path() argument
503 if (autogroup_path(tg, path, plen)) in task_group_path()
506 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
516 #define SEQ_printf_task_group_path(m, tg, fmt...) \ argument
519 task_group_path(tg, group_path, sizeof(group_path)); \
525 task_group_path(tg, buf, bufend - buf); \
593 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq()
650 atomic_long_read(&cfs_rq->tg->load_avg)); in print_cfs_rq()
[all …]