diff options
author | Yuyang Du <[email protected]> | 2015-12-17 07:34:27 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-01-06 11:06:29 +0100 |
commit | 0905f04eb21fc1c2e690bed5d0418a061d56c225 (patch) | |
tree | 453158d4e26692cbd1244bf14fdc7dd2ffd9ac96 /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | 5a1078043f844074cbd53981432778a8d5dd56e9 (diff) |
sched/fair: Fix new task's load avg removed from source CPU in wake_up_new_task()
If a newly created task is selected to go to a different CPU in fork
balance when it wakes up the first time, its load averages should
not be removed from the source CPU since they are never added to
it before. The same is also applicable to a never used group entity.
Fix it in remove_entity_load_avg(): when entity's last_update_time
is 0, simply return. This should precisely identify the case in
question, because in other migrations, the last_update_time is set
to 0 after remove_entity_load_avg().
Reported-by: Steve Muckle <[email protected]>
Signed-off-by: Yuyang Du <[email protected]>
[peterz: cfs_rq_last_update_time]
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Dietmar Eggemann <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Morten Rasmussen <[email protected]>
Cc: Patrick Bellasi <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vincent Guittot <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions