[PATCH] sched/fair: remove the swap() logic in load_too_imbalanced()

2015-10-17 Thread Zhihui Zhang
The swap() logic was introduced before we scaled the load by the actual CPU capacity. Now it looks funny that we swap the load but not the CPU capacity. In fact, we probably need to check both directions to ensure that the load of neither side increase too high compared to the other side.

[PATCH] sched/fair: remove the swap() logic in load_too_imbalanced()

2015-10-17 Thread Zhihui Zhang
The swap() logic was introduced before we scaled the load by the actual CPU capacity. Now it looks funny that we swap the load but not the CPU capacity. In fact, we probably need to check both directions to ensure that the load of neither side increase too high compared to the other side.