aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMel Gorman <mgorman@techsingularity.net>2020-11-20 09:06:28 +0000
committerPeter Zijlstra <peterz@infradead.org>2020-11-24 16:47:47 +0100
commit5c339005f854fa75aa46078ad640919425658b3e (patch)
tree9cfb55d51ceeda70e6023bd40626a1528f538ebd /tools/perf/scripts/python/stackcollapse.py
parentabeae76a47005aa3f07c9be12d8076365622e25c (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 <mgorman@techsingularity.net> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lkml.kernel.org/r/20201120090630.3286-3-mgorman@techsingularity.net
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions