sched: Limit the number of task migrations per batch

Put an upper limit on the number of tasks which are migrated per batch
to avoid large latencies.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit 6c6a9fafeb1ec04ee2a4d64f2a6bae3be3ad0151)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
(cherry picked from commit d8b520462cd355455350e551322769737be7d46c)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 file changed