sched: fair: Don't pull task during LB if task doesn't fit

can_migrate_task is invoked in a loop that attempts to find
a task to load balance. If we find ourselves a task that
can't fit on the target cpu, let's reject it during at least
that iteration. If we don't find another task, we'll come
back to the unfit task.

This allows heavy tasks to remain on a cpu that they can
fit in.

Change-Id: I6ffda528073d0a60cc260f9e48fe5efb7432ff61
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
1 file changed