sched: Relocated cpu_util() and change return type
authorMorten Rasmussen <morten.rasmussen@arm.com>
Thu, 11 Dec 2014 15:25:29 +0000 (15:25 +0000)
committerLeo Yan <leo.yan@linaro.org>
Tue, 10 May 2016 08:49:51 +0000 (16:49 +0800)
commitb6c0399e0f340887f369c6870ba6a865afe0b0ec
tree39c90721e097066155cf74ee0da64902001981ec
parent3e55d2f2fcaf44ac19eb143d895924ff402e375c
sched: Relocated cpu_util() and change return type

Move cpu_util() to an earlier position in fair.c and change return
type to unsigned long as negative usage doesn't make much sense. All
other load and capacity related functions use unsigned long including
the caller of cpu_util().

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/fair.c