diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 50a21f964679..3bafbe350f4f 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1456,6 +1456,8 @@ static unsigned long cpu_avg_load_per_task(int cpu) | |||
1456 | 1456 | ||
1457 | if (rq->nr_running) | 1457 | if (rq->nr_running) |
1458 | rq->avg_load_per_task = rq->load.weight / rq->nr_running; | 1458 | rq->avg_load_per_task = rq->load.weight / rq->nr_running; |
1459 | else | ||
1460 | rq->avg_load_per_task = 0; | ||
1459 | 1461 | ||
1460 | return rq->avg_load_per_task; | 1462 | return rq->avg_load_per_task; |
1461 | } | 1463 | } |