sched: hmp: unify active migration code
authorChris Redpath <chris.redpath@arm.com>
Mon, 24 Mar 2014 13:47:28 +0000 (13:47 +0000)
committerRobin Murphy <robin.murphy@arm.com>
Wed, 20 Aug 2014 14:04:07 +0000 (15:04 +0100)
commit989db3b5bac46463115f4a47b0c6dcb83bbb659a
treed04d64df63f56ba1e44da0ce9bcab7f48d8d897f
parentefc1e6b06ccd4629484ade6a88e5e4bfed892dcf
sched: hmp: unify active migration code

The HMP active migration code is functionally identical to the CFS
active migration code apart from one flag check. Share the code
and make the flag check optional.

Two wrapper functions allow the flag check to be present or not.

Thanks to tixy@linaro.org for pointing out the build break and a
good solution in an earlier version.

Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
[ Rebased on top of 1.1-Juno-rc0 ]
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
kernel/sched/fair.c