aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBrendan Jackman <[email protected]>2017-10-05 12:45:16 +0100
committerIngo Molnar <[email protected]>2017-10-10 11:45:36 +0200
commit93f50f90247e3e926bbe9830df089c64a5cec236 (patch)
treea7b31f40fa439b4ee9b43c208d38fcc7f73bba0d /tools/perf/util/trace-event-scripting.c
parent6fee85ccbc76e8aeba43dc120c5fa3c5409a4e2c (diff)
sched/fair: Fix usage of find_idlest_group() when the local group is idlest
find_idlest_group() returns NULL when the local group is idlest. The caller then continues the find_idlest_group() search at a lower level of the current CPU's sched_domain hierarchy. find_idlest_group_cpu() is not consulted and, crucially, @new_cpu is not updated. This means the search is pointless and we return @prev_cpu from select_task_rq_fair(). This is fixed by initialising @new_cpu to @cpu instead of @prev_cpu. Signed-off-by: Brendan Jackman <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Morten Rasmussen <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions