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)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:18:50 +0000 (14:48 +0530)
commit0660e45c2f66775fa0ebfa35dd73a070f8542568
treed35de7b2eacf2244351442e306f7c4ee8b590a53
parentccfcc4ed08c51b800a829053567af1ab661f4a07
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