Home
last modified time | relevance | path

Searched refs:task_group (Results 1 – 11 of 11) sorted by relevance

/linux/kernel/sched/
H A Dautogroup.h16 struct task_group *tg;
23 extern void autogroup_free(struct task_group *tg);
25 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup()
30 extern bool task_wants_autogroup(struct task_struct *p, struct task_group *tg);
32 static inline struct task_group *
33 autogroup_task_group(struct task_struct *p, struct task_group *tg) in autogroup_task_group()
44 extern int autogroup_path(struct task_group *tg, char *buf, int buflen);
49 static inline void autogroup_free(struct task_group *tg) { } in autogroup_free()
50 static inline bool task_group_is_autogroup(struct task_group *tg) in task_group_is_autogroup()
55 static inline struct task_group *
[all …]
H A Dext.h75 void scx_tg_init(struct task_group *tg);
76 int scx_tg_online(struct task_group *tg);
77 void scx_tg_offline(struct task_group *tg);
81 void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight);
82 void scx_group_set_idle(struct task_group *tg, bool idle);
83 void scx_group_set_bandwidth(struct task_group *tg, u64 period_us, u64 quota_us, u64 burst_us);
85 static inline void scx_tg_init(struct task_group *tg) {} in scx_tg_init()
86 static inline int scx_tg_online(struct task_group *tg) { return 0; } in scx_tg_online()
87 static inline void scx_tg_offline(struct task_group *tg) {} in scx_tg_offline()
91 static inline void scx_group_set_weight(struct task_group *tg, unsigned long cgrp_weight) {} in scx_group_set_weight()
[all …]
H A Dsched.h470 struct task_group { struct
504 struct task_group *parent; argument
540 typedef int (*tg_visitor)(struct task_group *, void *); argument
542 extern int walk_tg_tree_from(struct task_group *from,
556 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg()
558 return css ? container_of(css, struct task_group, css) : NULL; in css_tg()
561 extern int tg_nop(struct task_group *tg, void *data);
564 extern void free_fair_sched_group(struct task_group *tg);
565 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
566 extern void online_fair_sched_group(struct task_group *tg);
[all …]
H A Drt.c199 void unregister_rt_sched_group(struct task_group *tg) in unregister_rt_sched_group()
208 void free_rt_sched_group(struct task_group *tg) in free_rt_sched_group()
226 void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, in init_tg_rt_entry()
253 int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) in alloc_rt_sched_group()
323 void unregister_rt_sched_group(struct task_group *tg) { } in unregister_rt_sched_group()
325 void free_rt_sched_group(struct task_group *tg) { } in free_rt_sched_group()
327 int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent) in alloc_rt_sched_group()
491 typedef struct task_group *rt_rq_iter_t;
493 static inline struct task_group *next_task_group(struct task_group *tg) in next_task_group()
502 typeof(struct task_group), list); in next_task_group()
[all …]
H A Dautogroup.c44 void autogroup_free(struct task_group *tg) in autogroup_free()
90 struct task_group *tg; in autogroup_create()
131 bool task_wants_autogroup(struct task_struct *p, struct task_group *tg) in task_wants_autogroup()
287 int autogroup_path(struct task_group *tg, char *buf, int buflen) in autogroup_path()
H A Dcore.c1396 int walk_tg_tree_from(struct task_group *from, in walk_tg_tree_from()
1399 struct task_group *parent, *child; in walk_tg_tree_from()
1427 int tg_nop(struct task_group *tg, void *data) in tg_nop()
1602 if (task_group_is_autogroup(task_group(p))) in uclamp_tg_restrict()
1604 if (task_group(p) == &root_task_group) in uclamp_tg_restrict()
1607 tg_min = task_group(p)->uclamp[UCLAMP_MIN].value; in uclamp_tg_restrict()
1608 tg_max = task_group(p)->uclamp[UCLAMP_MAX].value; in uclamp_tg_restrict()
1882 struct task_group *tg = &root_task_group; in uclamp_update_root_tg()
4683 struct task_group *tg; in sched_cgroup_fork()
4685 struct task_group, css); in sched_cgroup_fork()
[all …]
H A Dext.c2778 static struct cgroup *tg_cgrp(struct task_group *tg) in tg_cgrp()
2835 static int scx_init_task(struct task_struct *p, struct task_group *tg, bool fork) in scx_init_task()
2989 return scx_init_task(p, task_group(p), true); in scx_fork()
3135 void scx_tg_init(struct task_group *tg) in scx_tg_init()
3143 int scx_tg_online(struct task_group *tg) in scx_tg_online()
3172 void scx_tg_offline(struct task_group *tg) in scx_tg_offline()
3196 struct cgroup *from = tg_cgrp(task_group(p)); in scx_cgroup_can_attach()
3249 tg_cgrp(task_group(p))); in scx_cgroup_move_task()
3271 void scx_group_set_weight(struct task_group *tg, unsigned long weight) in scx_group_set_weight()
3287 void scx_group_set_idle(struct task_group *tg, bool idle) in scx_group_set_idle()
[all …]
H A Dfair.c455 static int tg_is_idle(struct task_group *tg) in tg_is_idle()
503 static inline int tg_is_idle(struct task_group *tg) in tg_is_idle()
3888 struct task_group *tg = cfs_rq->tg; in calc_group_shares()
4109 struct task_group *tg; in clear_tg_offline_cfs_rqs()
5610 static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg) in tg_cfs_bandwidth()
5701 return throttled_hierarchy(task_group(p)->cfs_rq[dst_cpu]); in lb_throttled_hierarchy()
5844 static int tg_unthrottle_up(struct task_group *tg, void *data) in tg_unthrottle_up()
5915 static int tg_throttle_down(struct task_group *tg, void *data) in tg_throttle_down()
6381 static void sync_throttle(struct task_group *tg, int cpu) in sync_throttle()
6577 struct task_group *tg; in update_runtime_enabled()
[all …]
H A Dsyscalls.c615 task_group(p)->rt_bandwidth.rt_runtime == 0 && in __sched_setscheduler()
616 !task_group_is_autogroup(task_group(p))) { in __sched_setscheduler()
/linux/include/linux/sched/
H A Dautogroup.h7 struct task_group;
29 extern struct task_group root_task_group;
/linux/include/linux/
H A Dsched.h87 struct task_group;
886 struct task_group *sched_task_group;