sched: hmp: unify active migration code
authorChris Redpath <chris.redpath@arm.com>
Mon, 24 Mar 2014 13:47:28 +0000 (13:47 +0000)
committerJon Medhurst <tixy@linaro.org>
Mon, 24 Mar 2014 15:14:34 +0000 (15:14 +0000)
commit0baa5811bacf15b0e76ee85ce29fedffb5136313
tree98fedc7f467bc4bbaabbeacab7419e4a03967c1e
parent765aae26e6e296333c3a5f7a02360f5389dc439a
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>
kernel/sched/fair.c