Home
last modified time | relevance | path

Searched refs:dl_b (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/kernel/sched/
Ddeadline.c352 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_non_contending() local
356 raw_spin_lock(&dl_b->lock); in task_non_contending()
357 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in task_non_contending()
359 raw_spin_unlock(&dl_b->lock); in task_non_contending()
416 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) in init_dl_bandwidth() argument
418 raw_spin_lock_init(&dl_b->dl_runtime_lock); in init_dl_bandwidth()
419 dl_b->dl_period = period; in init_dl_bandwidth()
420 dl_b->dl_runtime = runtime; in init_dl_bandwidth()
423 void init_dl_bw(struct dl_bw *dl_b) in init_dl_bw() argument
425 raw_spin_lock_init(&dl_b->lock); in init_dl_bw()
[all …]
Dsched.h305 static inline void __dl_update(struct dl_bw *dl_b, s64 bw);
308 void __dl_sub(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_sub() argument
310 dl_b->total_bw -= tsk_bw; in __dl_sub()
311 __dl_update(dl_b, (s32)tsk_bw / cpus); in __dl_sub()
315 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_add() argument
317 dl_b->total_bw += tsk_bw; in __dl_add()
318 __dl_update(dl_b, -((s32)tsk_bw / cpus)); in __dl_add()
321 static inline bool __dl_overflow(struct dl_bw *dl_b, unsigned long cap, in __dl_overflow() argument
324 return dl_b->bw != -1 && in __dl_overflow()
325 cap_scale(dl_b->bw, cap) < dl_b->total_bw - old_bw + new_bw; in __dl_overflow()
[all …]