sched: Fix avg_load computation
authorVincent Guittot <vincent.guittot@linaro.org>
Tue, 26 Aug 2014 11:06:46 +0000 (13:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 19 Sep 2014 10:35:26 +0000 (12:35 +0200)
commit65fdac08c264506ff95ee1e34ae066e308c9e6e3
treeb24446233d1fb4e7fd7d213a5dcc103e33592850
parent05bfb65f52cbdabe26ebb629959416a6cffb034d
sched: Fix avg_load computation

The computation of avg_load and avg_load_per_task should only take into
account the number of CFS tasks. The non-CFS tasks are already taken into
account by decreasing the CPU's capacity and they will be tracked in the
CPU's utilization (group_utilization) of the next patches.

Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: riel@redhat.com
Cc: Morten.Rasmussen@arm.com
Cc: efault@gmx.de
Cc: nicolas.pitre@linaro.org
Cc: daniel.lezcano@linaro.org
Cc: dietmar.eggemann@arm.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1409051215-16788-4-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c