hmp: sched: Clean up hmp_up_threshold checks into a utility fn
authorChris Redpath <chris.redpath@arm.com>
Fri, 9 May 2014 13:36:51 +0000 (14:36 +0100)
committerJon Medhurst <tixy@linaro.org>
Fri, 9 May 2014 16:22:39 +0000 (17:22 +0100)
commit84efcd0cc59ece3d37feea85e459debc4efe2b5c
tree3bdfa0c3f840d39e2336b67cd387d58634c3f883
parent1ade57e54ea2257ccf753dbd54144769439c3c70
hmp: sched: Clean up hmp_up_threshold checks into a utility fn

In anticipation of modifying the up_threshold handling, make all
instances use the same utility fn to check if a task is eligible
for up-migration. This also removes the previous difference in
threshold comparison where up-migration used '!<threshold' and
idle pull used '>threshold' to decide up-migration eligibility.
Make them both use '!<threshold' instead for consistency, although
this is unlikely to change any results.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
kernel/sched/fair.c