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)
committerJon Medhurst <tixy@linaro.org>
Mon, 24 Mar 2014 15:14:33 +0000 (15:14 +0000)
commit765aae26e6e296333c3a5f7a02360f5389dc439a
tree652d6ffb51842c2e086c23d9db62a363a00228ca
parentb30814c74c184bbb231e24d6c857699af338468b
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