hmp: sched: Clean up hmp_up_threshold checks into a utility fn
authorChris Redpath <chris.redpath@arm.com>
Mon, 24 Mar 2014 13:47:27 +0000 (13:47 +0000)
committerRobin Murphy <robin.murphy@arm.com>
Wed, 20 Aug 2014 14:04:06 +0000 (15:04 +0100)
commitefc1e6b06ccd4629484ade6a88e5e4bfed892dcf
treee8f0d11def8d637073fc735c4eb9f08a1ec358db
parent5d6eaa872cbf7cb4bac6e94c896f1a08d741a723
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