diff options
author | Peng Wang <[email protected]> | 2020-04-11 17:20:20 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-04-30 20:14:38 +0200 |
commit | 64297f2b03cc7a6d0184a435f1b296beca1bedd1 (patch) | |
tree | 39666b419b1d3248e5c33d23a3203d8e3ec123a2 /lib/mpi/mpi-mod.c | |
parent | ab93a4bc955b3980c699430bc0b633f0d8b607be (diff) |
sched/fair: Simplify the code of should_we_balance()
We only consider group_balance_cpu() after there is no idle
cpu. So, just do comparison before return at these two cases.
Signed-off-by: Peng Wang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Link: https://lkml.kernel.org/r/245c792f0e580b3ca342ad61257f4c066ee0f84f.1586594833.git.rocking@linux.alibaba.com
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions