diff options
author | Ben Segall <[email protected]> | 2014-05-15 15:59:20 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-05-22 11:16:25 +0200 |
commit | 3944a9274ef6cda0cc282daf0739832f661670f7 (patch) | |
tree | 915704002a970ef8e8f359734355a0784d935088 /tools/perf/util/trace-event-scripting.c | |
parent | 6669dc89078da020241e78e5589489e494203332 (diff) |
sched: Fix exec_start/task_hot on migrated tasks
task_hot checks exec_start on any runnable task, but if it has been
migrated since the it last ran, then exec_start is a clock_task from
another cpu. If the old cpu's clock_task was sufficiently far ahead of
this cpu's then the task will not be considered for another migration
until it has run. Instead reset exec_start whenever a task is migrated,
since it is presumably no longer hot anyway.
Signed-off-by: Ben Segall <[email protected]>
[ Made it compile. ]
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/20140515225920.7179.13924.stgit@sword-of-the-dawn.mtv.corp.google.com
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions