diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 31aa1b9fa762..f2cc59080efa 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -283,12 +283,8 @@ static u64 __sched_period(unsigned long nr_running) | |||
283 | */ | 283 | */ |
284 | static u64 sched_slice(struct cfs_rq *cfs_rq, struct sched_entity *se) | 284 | static u64 sched_slice(struct cfs_rq *cfs_rq, struct sched_entity *se) |
285 | { | 285 | { |
286 | u64 slice = __sched_period(cfs_rq->nr_running); | 286 | return calc_delta_mine(__sched_period(cfs_rq->nr_running), |
287 | 287 | se->load.weight, &cfs_rq->load); | |
288 | slice *= se->load.weight; | ||
289 | do_div(slice, cfs_rq->load.weight); | ||
290 | |||
291 | return slice; | ||
292 | } | 288 | } |
293 | 289 | ||
294 | /* | 290 | /* |