diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 037b8245e533..16511e9e5528 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -287,15 +287,15 @@ __update_curr(struct cfs_rq *cfs_rq, struct sched_entity *curr, u64 now) | |||
287 | struct load_weight *lw = &cfs_rq->load; | 287 | struct load_weight *lw = &cfs_rq->load; |
288 | unsigned long load = lw->weight; | 288 | unsigned long load = lw->weight; |
289 | 289 | ||
290 | if (unlikely(!load)) | ||
291 | return; | ||
292 | |||
293 | delta_exec = curr->delta_exec; | 290 | delta_exec = curr->delta_exec; |
294 | schedstat_set(curr->exec_max, max((u64)delta_exec, curr->exec_max)); | 291 | schedstat_set(curr->exec_max, max((u64)delta_exec, curr->exec_max)); |
295 | 292 | ||
296 | curr->sum_exec_runtime += delta_exec; | 293 | curr->sum_exec_runtime += delta_exec; |
297 | cfs_rq->exec_clock += delta_exec; | 294 | cfs_rq->exec_clock += delta_exec; |
298 | 295 | ||
296 | if (unlikely(!load)) | ||
297 | return; | ||
298 | |||
299 | delta_fair = calc_delta_fair(delta_exec, lw); | 299 | delta_fair = calc_delta_fair(delta_exec, lw); |
300 | delta_mine = calc_delta_mine(delta_exec, curr->load.weight, lw); | 300 | delta_mine = calc_delta_mine(delta_exec, curr->load.weight, lw); |
301 | 301 | ||