|
@@ -283,12 +283,8 @@ static u64 __sched_period(unsigned long nr_running)
|
|
|
*/
|
|
|
static u64 sched_slice(struct cfs_rq *cfs_rq, struct sched_entity *se)
|
|
|
{
|
|
|
- u64 slice = __sched_period(cfs_rq->nr_running);
|
|
|
-
|
|
|
- slice *= se->load.weight;
|
|
|
- do_div(slice, cfs_rq->load.weight);
|
|
|
-
|
|
|
- return slice;
|
|
|
+ return calc_delta_mine(__sched_period(cfs_rq->nr_running),
|
|
|
+ se->load.weight, &cfs_rq->load);
|
|
|
}
|
|
|
|
|
|
/*
|