sched: hmp: unify active migration code
authorChris Redpath <chris.redpath@arm.com>
Fri, 9 May 2014 13:36:52 +0000 (14:36 +0100)
committerJon Medhurst <tixy@linaro.org>
Fri, 9 May 2014 16:22:39 +0000 (17:22 +0100)
commit0168997c0ab20054b28e26c57dbfcf90477ceb2a
treee37511c1d8ba94ca2d55150943346651844d9585
parent84efcd0cc59ece3d37feea85e459debc4efe2b5c
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