diff options
| author | Matt Fleming <[email protected]> | 2016-10-26 16:15:44 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-01-30 11:46:35 +0100 |
| commit | 4d25b35ea3729affd37d69c78191ce6f92766e1a (patch) | |
| tree | 013c49fa232779343680d3c8dd21871809dafd54 /tools/perf/scripts/python | |
| parent | 1b1d62254df0fe42a711eb71948f915918987790 (diff) | |
sched/fair: Restore previous rq_flags when migrating tasks in hotplug
__migrate_task() can return with a different runqueue locked than the
one we passed as an argument. So that we can repin the lock in
migrate_tasks() (and keep the update_rq_clock() bit) we need to
restore the old rq_flags before repinning.
Note that it wouldn't be correct to change move_queued_task() to repin
because of the change of runqueue and the fact that having an
up-to-date clock on the initial rq doesn't mean the new rq has one
too.
Signed-off-by: Matt Fleming <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions