Home
last modified time | relevance | path

Searched refs:cfs_rq (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/kernel/sched/
Dfair.c348 static inline bool list_add_leaf_cfs_rq(struct cfs_rq *cfs_rq) in list_add_leaf_cfs_rq() argument
350 struct rq *rq = rq_of(cfs_rq); in list_add_leaf_cfs_rq()
353 if (cfs_rq->on_list) in list_add_leaf_cfs_rq()
356 cfs_rq->on_list = 1; in list_add_leaf_cfs_rq()
367 if (cfs_rq->tg->parent && in list_add_leaf_cfs_rq()
368 cfs_rq->tg->parent->cfs_rq[cpu]->on_list) { in list_add_leaf_cfs_rq()
375 list_add_tail_rcu(&cfs_rq->leaf_cfs_rq_list, in list_add_leaf_cfs_rq()
376 &(cfs_rq->tg->parent->cfs_rq[cpu]->leaf_cfs_rq_list)); in list_add_leaf_cfs_rq()
386 if (!cfs_rq->tg->parent) { in list_add_leaf_cfs_rq()
391 list_add_tail_rcu(&cfs_rq->leaf_cfs_rq_list, in list_add_leaf_cfs_rq()
[all …]
Dpelt.h5 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 …]
Dpelt.c306 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()
Ddebug.c581 void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq) in print_cfs_rq() argument
591 SEQ_printf_task_group_path(m, cfs_rq->tg, "cfs_rq[%d]:%s\n", cpu); in print_cfs_rq()
597 SPLIT_NS(cfs_rq->exec_clock)); in print_cfs_rq()
600 if (rb_first_cached(&cfs_rq->tasks_timeline)) in print_cfs_rq()
601 MIN_vruntime = (__pick_first_entity(cfs_rq))->vruntime; in print_cfs_rq()
602 last = __pick_last_entity(cfs_rq); in print_cfs_rq()
605 min_vruntime = cfs_rq->min_vruntime; in print_cfs_rq()
621 cfs_rq->nr_spread_over); in print_cfs_rq()
622 SEQ_printf(m, " .%-30s: %d\n", "nr_running", cfs_rq->nr_running); in print_cfs_rq()
623 SEQ_printf(m, " .%-30s: %d\n", "h_nr_running", cfs_rq->h_nr_running); in print_cfs_rq()
[all …]
Dsched.h337 struct cfs_rq;
376 struct cfs_rq **cfs_rq; member
460 extern void init_tg_cfs_entry(struct task_group *tg, struct cfs_rq *cfs_rq,
467 extern void unthrottle_cfs_rq(struct cfs_rq *cfs_rq);
493 struct cfs_rq *prev, struct cfs_rq *next);
496 struct cfs_rq *prev, struct cfs_rq *next) { } in set_task_rq_fair()
550 struct cfs_rq { struct
990 struct cfs_rq cfs;
1158 static inline struct rq *rq_of(struct cfs_rq *cfs_rq) in rq_of() argument
1160 return cfs_rq->rq; in rq_of()
[all …]
Dcore.c4383 p->se.cfs_rq = NULL; in __sched_fork()
5387 struct sched_entity *curr = (&p->se)->cfs_rq->curr; in prefetch_curr_exec_start()
9689 root_task_group.cfs_rq = (struct cfs_rq **)ptr; in sched_init()
10631 struct cfs_rq *cfs_rq = tg->cfs_rq[i]; in tg_set_cfs_bandwidth() local
10632 struct rq *rq = cfs_rq->rq; in tg_set_cfs_bandwidth()
10636 cfs_rq->runtime_enabled = runtime_enabled; in tg_set_cfs_bandwidth()
10637 cfs_rq->runtime_remaining = 0; in tg_set_cfs_bandwidth()
10639 if (cfs_rq->throttled) in tg_set_cfs_bandwidth()
10640 unthrottle_cfs_rq(cfs_rq); in tg_set_cfs_bandwidth()
/linux-6.1.9/include/trace/events/
Dsched.h695 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.1.9/include/linux/
Dsched.h49 struct cfs_rq;
565 struct cfs_rq *cfs_rq; member
567 struct cfs_rq *my_q;