aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJoonsoo Kim <[email protected]>2013-04-23 17:27:42 +0900
committerIngo Molnar <[email protected]>2013-04-24 08:52:46 +0200
commite02e60c109ca70935bad1131976bdbf5160cf576 (patch)
tree56295c7eacea90fb95a2febf178ea287664e4407 /tools/perf/scripts/python/sched-migration.py
parente6252c3ef4b9cd251b53f7b68035f395d20b044e (diff)
sched: Prevent to re-select dst-cpu in load_balance()
Commit 88b8dac0 makes load_balance() consider other cpus in its group. But, in that, there is no code for preventing to re-select dst-cpu. So, same dst-cpu can be selected over and over. This patch add functionality to load_balance() in order to exclude cpu which is selected once. We prevent to re-select dst_cpu via env's cpus, so now, env's cpus is a candidate not only for src_cpus, but also dst_cpus. With this patch, we can remove lb_iterations and max_lb_iterations, because we decide whether we can go ahead or not via env's cpus. Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Tested-by: Jason Low <[email protected]> Cc: Srivatsa Vaddagiri <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions