Lines Matching defs:tg

567 extern int tg_nop(struct task_group *tg, void *data);
570 extern void free_fair_sched_group(struct task_group *tg);
571 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
572 extern void online_fair_sched_group(struct task_group *tg);
573 extern void unregister_fair_sched_group(struct task_group *tg);
575 static inline void free_fair_sched_group(struct task_group *tg) { }
576 static inline int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
580 static inline void online_fair_sched_group(struct task_group *tg) { }
581 static inline void unregister_fair_sched_group(struct task_group *tg) { }
584 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
594 extern void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq,
597 extern int sched_group_set_rt_runtime(struct task_group *tg, long rt_runtime_us);
598 extern int sched_group_set_rt_period(struct task_group *tg, u64 rt_period_us);
599 extern long sched_group_rt_runtime(struct task_group *tg);
600 extern long sched_group_rt_period(struct task_group *tg);
601 extern int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk);
604 extern void sched_online_group(struct task_group *tg,
606 extern void sched_destroy_group(struct task_group *tg);
607 extern void sched_release_group(struct task_group *tg);
612 extern int sched_group_set_shares(struct task_group *tg, unsigned long shares);
614 extern int sched_group_set_idle(struct task_group *tg, long idle);
619 static inline int sched_group_set_shares(struct task_group *tg, unsigned long shares) { return 0; }
620 static inline int sched_group_set_idle(struct task_group *tg, long idle) { return 0; }
631 extern void unregister_rt_sched_group(struct task_group *tg);
632 extern void free_rt_sched_group(struct task_group *tg);
633 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
728 * h_load = weight * f(tg)
730 * Where f(tg) is the recursive weight fraction assigned to
749 struct task_group *tg; /* Group that "owns" this runqueue */
865 struct task_group *tg; /* this tg has "this" rt_rq on given CPU for runnable entities */
935 /* Check whether a task group is root tg */
936 #define is_root_task_group(tg) ((tg) == &root_task_group)
2285 * The same is true for autogroup's p->signal->autogroup->tg, the autogroup
2308 static inline struct cfs_rq *tg_cfs_rq(struct task_group *tg, int cpu)
2310 return per_cpu_ptr(tg->cfs_rq, cpu);
2313 static inline struct sched_entity *tg_se(struct task_group *tg, int cpu)
2317 if (is_root_task_group(tg))
2320 state = container_of(tg_cfs_rq(tg, cpu), struct cfs_tg_state, cfs_rq);
2328 if (is_root_task_group(cfs_rq->tg))
2340 struct task_group *tg = task_group(p);
2344 set_task_rq_fair(&p->se, p->se.cfs_rq, tg_cfs_rq(tg, cpu));
2345 p->se.cfs_rq = tg_cfs_rq(tg, cpu);
2346 p->se.parent = tg_se(tg, cpu);
2354 * Clobbers tg(!)
2357 tg = &root_task_group;
2358 p->rt.rt_rq = tg->rt_rq[cpu];
2359 p->rt.parent = tg->rt_se[cpu];