| /linux/kernel/sched/ |
| H A D | autogroup.h | 16 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 D | ext.h | 75 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 D | sched.h | 471 struct task_group { struct 505 struct task_group *parent; argument 541 typedef int (*tg_visitor)(struct task_group *, void *); argument 543 extern int walk_tg_tree_from(struct task_group *from, 557 static inline struct task_group *css_tg(struct cgroup_subsys_state *css) in css_tg() 559 return css ? container_of(css, struct task_group, css) : NULL; in css_tg() 562 extern int tg_nop(struct task_group *tg, void *data); 565 extern void free_fair_sched_group(struct task_group *tg); 566 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent); 567 extern void online_fair_sched_group(struct task_group *tg); [all …]
|
| H A D | autogroup.c | 44 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 D | rt.c | 199 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 D | core.c | 1395 int walk_tg_tree_from(struct task_group *from, in walk_tg_tree_from() 1398 struct task_group *parent, *child; in walk_tg_tree_from() 1426 int tg_nop(struct task_group *tg, void *data) in tg_nop() 1601 if (task_group_is_autogroup(task_group(p))) in uclamp_tg_restrict() 1603 if (task_group(p) == &root_task_group) in uclamp_tg_restrict() 1606 tg_min = task_group(p)->uclamp[UCLAMP_MIN].value; in uclamp_tg_restrict() 1607 tg_max = task_group(p)->uclamp[UCLAMP_MAX].value; in uclamp_tg_restrict() 1881 struct task_group *tg = &root_task_group; in uclamp_update_root_tg() 4759 struct task_group *tg; in sched_cgroup_fork() 4761 struct task_group, css); in sched_cgroup_fork() [all …]
|
| H A D | ext.c | 2707 static struct cgroup *tg_cgrp(struct task_group *tg) in tg_cgrp() 2764 static int scx_init_task(struct task_struct *p, struct task_group *tg, bool fork) in scx_init_task() 2918 return scx_init_task(p, task_group(p), true); in scx_fork() 3064 void scx_tg_init(struct task_group *tg) in scx_tg_init() 3071 int scx_tg_online(struct task_group *tg) in scx_tg_online() 3100 void scx_tg_offline(struct task_group *tg) in scx_tg_offline() 3124 struct cgroup *from = tg_cgrp(task_group(p)); in scx_cgroup_can_attach() 3177 tg_cgrp(task_group(p))); in scx_cgroup_move_task() 3199 void scx_group_set_weight(struct task_group *tg, unsigned long weight) in scx_group_set_weight() 3215 void scx_group_set_idle(struct task_group *tg, bool idle) in scx_group_set_idle() [all …]
|
| H A D | fair.c | 455 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() 3913 struct task_group *tg = cfs_rq->tg; in calc_group_shares() 4131 struct task_group *tg; in clear_tg_offline_cfs_rqs() 5651 static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg) in tg_cfs_bandwidth() 5742 return throttled_hierarchy(task_group(p)->cfs_rq[dst_cpu]); in lb_throttled_hierarchy() 5885 static int tg_unthrottle_up(struct task_group *tg, void *data) in tg_unthrottle_up() 5956 static int tg_throttle_down(struct task_group *tg, void *data) in tg_throttle_down() 6422 static void sync_throttle(struct task_group *tg, int cpu) in sync_throttle() 6618 struct task_group *tg; in update_runtime_enabled() [all …]
|
| H A D | debug.c | 645 static void print_cfs_group_stats(struct seq_file *m, int cpu, struct task_group *tg) in print_cfs_group_stats() 695 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path() 754 SEQ_printf_task_group_path(m, task_group(p), " %s") in print_task()
|
| H A D | syscalls.c | 636 task_group(p)->rt_bandwidth.rt_runtime == 0 && in __sched_setscheduler() 637 !task_group_is_autogroup(task_group(p))) { in __sched_setscheduler()
|
| /linux/include/linux/sched/ |
| H A D | autogroup.h | 7 struct task_group; 29 extern struct task_group root_task_group;
|
| /linux/include/linux/ |
| H A D | sched.h | 87 struct task_group; 886 struct task_group *sched_task_group;
|