diff options
author | Peng Wang <rocking@linux.alibaba.com> | 2020-04-11 17:20:20 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-04-30 20:14:38 +0200 |
commit | 64297f2b03cc7a6d0184a435f1b296beca1bedd1 (patch) | |
tree | 39666b419b1d3248e5c33d23a3203d8e3ec123a2 /Documentation/process/volatile-considered-harmful.rst | |
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 <rocking@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/245c792f0e580b3ca342ad61257f4c066ee0f84f.1586594833.git.rocking@linux.alibaba.com
Diffstat (limited to 'Documentation/process/volatile-considered-harmful.rst')
0 files changed, 0 insertions, 0 deletions