Searched refs:cfs_rq (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/kernel/sched/ |
D | fair.c | 331 static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) in list_add_leaf_cfs_rq() argument 333 struct rq *rq = rq_of(cfs_rq); in list_add_leaf_cfs_rq() 336 if (cfs_rq->on_list) in list_add_leaf_cfs_rq() 339 cfs_rq->on_list = 1; in list_add_leaf_cfs_rq() 350 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq() 351 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq() 358 list_add_tail_rcu(&cfs_rq->leaf_cfs_rq_list, in list_add_leaf_cfs_rq() 359 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq() 369 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq() 374 list_add_tail_rcu(&cfs_rq->leaf_cfs_rq_list, in list_add_leaf_cfs_rq() [all …]
|
D | pelt.h | 5 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se); 6 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq); 156 static inline void update_idle_cfs_rq_clock_pelt(struct cfs_rq *cfs_rq) in update_idle_cfs_rq_clock_pelt() argument 160 if (unlikely(cfs_rq->throttle_count)) in update_idle_cfs_rq_clock_pelt() 163 throttled = cfs_rq->throttled_clock_pelt_time; in update_idle_cfs_rq_clock_pelt() 165 u64_u32_store(cfs_rq->throttled_pelt_idle, throttled); in update_idle_cfs_rq_clock_pelt() 169 static inline u64 cfs_rq_clock_pelt(struct cfs_rq *cfs_rq) in cfs_rq_clock_pelt() argument 171 if (unlikely(cfs_rq->throttle_count)) in cfs_rq_clock_pelt() 172 return cfs_rq->throttled_clock_pelt - cfs_rq->throttled_clock_pelt_time; in cfs_rq_clock_pelt() 174 return rq_clock_pelt(rq_of(cfs_rq)) - cfs_rq->throttled_clock_pelt_time; in cfs_rq_clock_pelt() [all …]
|
D | pelt.c | 306 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se) in __update_load_avg_se() argument 309 cfs_rq->curr == se)) { in __update_load_avg_se() 320 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq) in __update_load_avg_cfs_rq() argument 322 if (___update_load_sum(now, &cfs_rq->avg, in __update_load_avg_cfs_rq() 323 scale_load_down(cfs_rq->load.weight), in __update_load_avg_cfs_rq() 324 cfs_rq->h_nr_running, in __update_load_avg_cfs_rq() 325 cfs_rq->curr != NULL)) { in __update_load_avg_cfs_rq() 327 ___update_load_avg(&cfs_rq->avg, 1); in __update_load_avg_cfs_rq() 328 trace_pelt_cfs_tp(cfs_rq); in __update_load_avg_cfs_rq()
|
D | debug.c | 629 void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) in print_cfs_rq() argument 638 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq() 644 SPLIT_NS(cfs_rq->exec_clock)); in print_cfs_rq() 647 first = __pick_first_entity(cfs_rq); in print_cfs_rq() 650 last = __pick_last_entity(cfs_rq); in print_cfs_rq() 653 min_vruntime = cfs_rq->min_vruntime; in print_cfs_rq() 661 SPLIT_NS(avg_vruntime(cfs_rq))); in print_cfs_rq() 667 cfs_rq->nr_spread_over); in print_cfs_rq() 668 SEQ_printf(m, " .%-30s: %d\n", "nr_running", cfs_rq->nr_running); in print_cfs_rq() 669 SEQ_printf(m, " .%-30s: %d\n", "h_nr_running", cfs_rq->h_nr_running); in print_cfs_rq() [all …]
|
D | sched.h | 331 struct cfs_rq; 370 struct cfs_rq **cfs_rq; member 454 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq, 461 extern void unthrottle_cfs_rq(struct cfs_rq *cfs_rq); 488 struct cfs_rq *prev, struct cfs_rq *next); 491 struct cfs_rq *prev, struct cfs_rq *next) { } in set_task_rq_fair() 546 struct cfs_rq { struct 998 struct cfs_rq cfs; 1174 static inline struct rq *rq_of(struct cfs_rq *cfs_rq) in rq_of() argument 1176 return cfs_rq->rq; in rq_of() [all …]
|
D | core.c | 4512 p->se.cfs_rq = NULL; in __sched_fork() 5535 struct sched_entity *curr = (&p->se)->cfs_rq->curr; in prefetch_curr_exec_start() 9940 root_task_group.cfs_rq = (struct cfs_rq **)ptr; in sched_init() 10899 struct cfs_rq *cfs_rq = tg->cfs_rq[i]; in tg_set_cfs_bandwidth() local 10900 struct rq *rq = cfs_rq->rq; in tg_set_cfs_bandwidth() 10904 cfs_rq->runtime_enabled = runtime_enabled; in tg_set_cfs_bandwidth() 10905 cfs_rq->runtime_remaining = 0; in tg_set_cfs_bandwidth() 10907 if (cfs_rq->throttled) in tg_set_cfs_bandwidth() 10908 unthrottle_cfs_rq(cfs_rq); in tg_set_cfs_bandwidth() 11155 total += READ_ONCE(tg->cfs_rq[i]->throttled_clock_self_time); in throttled_time_self()
|
/linux-6.6.21/include/trace/events/ |
D | sched.h | 695 TP_PROTO(struct cfs_rq *cfs_rq), 696 TP_ARGS(cfs_rq)); 727 TP_PROTO(struct cfs_rq *cfs_rq), 728 TP_ARGS(cfs_rq));
|
/linux-6.6.21/include/linux/ |
D | sched.h | 49 struct cfs_rq; 571 struct cfs_rq *cfs_rq; member 573 struct cfs_rq *my_q;
|