Lines Matching refs:dl_bw

69 static inline struct dl_bw *dl_bw_of(int i)  in dl_bw_of()
73 return &cpu_rq(i)->rd->dl_bw; in dl_bw_of()
123 static inline struct dl_bw *dl_bw_of(int i) in dl_bw_of()
125 return &cpu_rq(i)->dl.dl_bw; in dl_bw_of()
140 void __add_running_bw(u64 dl_bw, struct dl_rq *dl_rq) in __add_running_bw() argument
145 dl_rq->running_bw += dl_bw; in __add_running_bw()
153 void __sub_running_bw(u64 dl_bw, struct dl_rq *dl_rq) in __sub_running_bw() argument
158 dl_rq->running_bw -= dl_bw; in __sub_running_bw()
167 void __add_rq_bw(u64 dl_bw, struct dl_rq *dl_rq) in __add_rq_bw() argument
172 dl_rq->this_bw += dl_bw; in __add_rq_bw()
177 void __sub_rq_bw(u64 dl_bw, struct dl_rq *dl_rq) in __sub_rq_bw() argument
182 dl_rq->this_bw -= dl_bw; in __sub_rq_bw()
193 __add_rq_bw(dl_se->dl_bw, dl_rq); in add_rq_bw()
200 __sub_rq_bw(dl_se->dl_bw, dl_rq); in sub_rq_bw()
207 __add_running_bw(dl_se->dl_bw, dl_rq); in add_running_bw()
214 __sub_running_bw(dl_se->dl_bw, dl_rq); in sub_running_bw()
240 __sub_rq_bw(p->dl.dl_bw, &rq->dl); in dl_change_utilization()
336 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_non_contending()
341 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in task_non_contending()
407 void init_dl_bw(struct dl_bw *dl_b) in init_dl_bw()
431 init_dl_bw(&dl_rq->dl_bw); in init_dl_rq()
595 struct dl_bw *dl_b; in dl_task_offline_migration()
646 dl_b = &rq->rd->dl_bw; in dl_task_offline_migration()
648 __dl_sub(dl_b, p->dl.dl_bw, cpumask_weight(rq->rd->span)); in dl_task_offline_migration()
651 dl_b = &later_rq->rd->dl_bw; in dl_task_offline_migration()
653 __dl_add(dl_b, p->dl.dl_bw, cpumask_weight(later_rq->rd->span)); in dl_task_offline_migration()
1217 u64 u_act_min = (dl_se->dl_bw * rq->dl.bw_ratio) >> RATIO_SHIFT; in grub_reclaim()
1357 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in inactive_task_timer()
1366 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in inactive_task_timer()
2326 struct dl_bw *src_dl_b; in set_cpus_allowed_dl()
2335 __dl_sub(src_dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in set_cpus_allowed_dl()
2376 struct dl_bw *dl_b; in dl_add_task_root_domain()
2382 dl_b = &rq->rd->dl_bw; in dl_add_task_root_domain()
2385 __dl_add(dl_b, p->dl.dl_bw, cpumask_weight(rq->rd->span)); in dl_add_task_root_domain()
2397 raw_spin_lock_irqsave(&rd->dl_bw.lock, flags); in dl_clear_root_domain()
2398 rd->dl_bw.total_bw = 0; in dl_clear_root_domain()
2399 raw_spin_unlock_irqrestore(&rd->dl_bw.lock, flags); in dl_clear_root_domain()
2549 struct dl_bw *dl_b; in sched_dl_global_validate()
2596 struct dl_bw *dl_b; in sched_dl_do_global()
2637 struct dl_bw *dl_b = dl_bw_of(cpu); in sched_dl_overflow()
2644 if (new_bw == p->dl.dl_bw && task_has_dl_policy(p)) in sched_dl_overflow()
2659 __dl_sub(dl_b, p->dl.dl_bw, cpus); in sched_dl_overflow()
2663 !__dl_overflow(dl_b, cap, p->dl.dl_bw, new_bw)) { in sched_dl_overflow()
2671 __dl_sub(dl_b, p->dl.dl_bw, cpus); in sched_dl_overflow()
2704 dl_se->dl_bw = to_ratio(dl_se->dl_period, dl_se->dl_runtime); in __setparam_dl()
2793 dl_se->dl_bw = 0; in __dl_clear_params()
2824 struct dl_bw *dl_b; in dl_task_can_attach()
2834 overflow = __dl_overflow(dl_b, cap, 0, p->dl.dl_bw); in dl_task_can_attach()
2846 __dl_add(dl_b, p->dl.dl_bw, cpus); in dl_task_can_attach()
2859 struct dl_bw *cur_dl_b; in dl_cpuset_cpumask_can_shrink()
2879 struct dl_bw *dl_b; in dl_cpu_busy()