diff options
author | Mel Gorman <[email protected]> | 2020-11-20 09:06:28 +0000 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-11-24 16:47:47 +0100 |
commit | 5c339005f854fa75aa46078ad640919425658b3e (patch) | |
tree | 9cfb55d51ceeda70e6023bd40626a1528f538ebd /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | abeae76a47005aa3f07c9be12d8076365622e25c (diff) |
sched: Avoid unnecessary calculation of load imbalance at clone time
In find_idlest_group(), the load imbalance is only relevant when the group
is either overloaded or fully busy but it is calculated unconditionally.
This patch moves the imbalance calculation to the context it is required.
Technically, it is a micro-optimisation but really the benefit is avoiding
confusing one type of imbalance with another depending on the group_type
in the next patch.
No functional change.
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Vincent Guittot <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions