Searched refs:dl_b (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/kernel/sched/ |
D | deadline.c | 337 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); in task_non_contending() local 341 raw_spin_lock(&dl_b->lock); in task_non_contending() 342 __dl_sub(dl_b, p->dl.dl_bw, dl_bw_cpus(task_cpu(p))); in task_non_contending() 344 raw_spin_unlock(&dl_b->lock); in task_non_contending() 401 void init_dl_bandwidth(struct dl_bandwidth *dl_b, u64 period, u64 runtime) in init_dl_bandwidth() argument 403 raw_spin_lock_init(&dl_b->dl_runtime_lock); in init_dl_bandwidth() 404 dl_b->dl_period = period; in init_dl_bandwidth() 405 dl_b->dl_runtime = runtime; in init_dl_bandwidth() 408 void init_dl_bw(struct dl_bw *dl_b) in init_dl_bw() argument 410 raw_spin_lock_init(&dl_b->lock); in init_dl_bw() [all …]
|
D | sched.h | 384 static inline void __dl_update(struct dl_bw *dl_b, s64 bw); 387 void __dl_sub(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_sub() argument 389 dl_b->total_bw -= tsk_bw; in __dl_sub() 390 __dl_update(dl_b, (s32)tsk_bw / cpus); in __dl_sub() 394 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_add() argument 396 dl_b->total_bw += tsk_bw; in __dl_add() 397 __dl_update(dl_b, -((s32)tsk_bw / cpus)); in __dl_add() 400 static inline bool __dl_overflow(struct dl_bw *dl_b, unsigned long cap, in __dl_overflow() argument 403 return dl_b->bw != -1 && in __dl_overflow() 404 cap_scale(dl_b->bw, cap) < dl_b->total_bw - old_bw + new_bw; in __dl_overflow() [all …]
|