OSDN Git Service

ANDROID: 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)
committerChris Redpath <chris.redpath@arm.com>
Thu, 14 Dec 2017 21:41:09 +0000 (21:41 +0000)
commit29231563c6c92b9e741f95b72b02fd79d49ab0a6
tree449d8eb98eced97db9f8fb51c3a46ab2593ab4dc
parent00bbe7d605a98732b962bb8992448b882f03314d
ANDROID: 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>
Change-Id: Ic55bbd2af1850cf2d0b9b9d9fddca229670e7774
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c