Lines Matching refs:cpus
113 int cpus; in dl_bw_cpus() local
121 cpus = 0; in dl_bw_cpus()
124 cpus++; in dl_bw_cpus()
126 return cpus; in dl_bw_cpus()
213 void __dl_sub(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_sub() argument
216 __dl_update(dl_b, (s32)tsk_bw / cpus); in __dl_sub()
220 void __dl_add(struct dl_bw *dl_b, u64 tsk_bw, int cpus) in __dl_add() argument
223 __dl_update(dl_b, -((s32)tsk_bw / cpus)); in __dl_add()
2757 int cpu, cpus, ret = 0; in sched_dl_global_validate() local
2772 cpus = dl_bw_cpus(cpu); in sched_dl_global_validate()
2775 if (new_bw * cpus < dl_b->total_bw) in sched_dl_global_validate()
2846 int cpus, err = -1, cpu = task_cpu(p); in sched_dl_overflow() local
2863 cpus = dl_bw_cpus(cpu); in sched_dl_overflow()
2869 __dl_sub(dl_b, p->dl.dl_bw, cpus); in sched_dl_overflow()
2870 __dl_add(dl_b, new_bw, cpus); in sched_dl_overflow()
2881 __dl_sub(dl_b, p->dl.dl_bw, cpus); in sched_dl_overflow()
2882 __dl_add(dl_b, new_bw, cpus); in sched_dl_overflow()