Skip to content
Commit 3944a927 authored by Ben Segall's avatar Ben Segall Committed by Ingo Molnar
Browse files

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: default avatarBen Segall <bsegall@google.com>
[ Made it compile. ]
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140515225920.7179.13924.stgit@sword-of-the-dawn.mtv.corp.google.com
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 6669dc89
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment