diff options
| author | Byungchul Park <[email protected]> | 2015-08-20 20:22:00 +0900 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2015-09-13 09:52:49 +0200 |
| commit | daa59407b558e6e621e9081a308d5db3ef991fb6 (patch) | |
| tree | 2d10020451419257fb46929880240fe68c66929d /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | a9280514bf1e54775b8d7cd93d87c05c2b5273e6 (diff) | |
sched/fair: Unify switched_{from,to}_fair() and task_move_group_fair()
By observing that switched_from_fair() detaches from a runqueue, and
switched_to_fair() attaches to a runqueue, we can see that
task_move_group_fair() is one followed by the other with flipping the
runqueue in between.
Therefore extract all the common bits and implement all three
functions in terms of them.
This should fix a few corner cases wrt. vruntime normalization; where,
when we take a task off of a runqueue we convert to an approximation
of lag by subtracting min_vruntime, and when placing a task on the a
runqueue to the reverse.
Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Byungchul Park <[email protected]>
[peterz: Changelog]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions