summaryrefslogtreecommitdiff
path: root/kernel/sched/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-05-06 17:11:34 +0300
committerIngo Molnar <mingo@kernel.org>2017-09-29 20:35:14 +0300
commit840c5abca499a858619954dbcffc82110bb6e076 (patch)
tree26da2483cf2f0fcdb7446595b311a2d78f85f68f /kernel/sched/sched.h
parent8d5b9025f9b4500f828260dc62e8ffa823ce0d59 (diff)
downloadlinux-840c5abca499a858619954dbcffc82110bb6e076.tar.xz
sched/fair: More accurate reweight_entity()
When a (group) entity changes it's weight we should instantly change its load_avg and propagate that change into the sums it is part of. Because we use these values to predict future behaviour and are not interested in its historical value. Without this change, the change in load would need to propagate through the average, by which time it could again have changed etc.. always chasing itself. With this change, the cfs_rq load_avg sum will more accurately reflect the current runnable and expected return of blocked load. Reported-by: Paul Turner <pjt@google.com> [josef: compile fix !SMP || !FAIR_GROUP] Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched.h')
0 files changed, 0 insertions, 0 deletions