• Peter Zijlstra's avatar
    sched/fair: Improve PELT stuff some more · 7c3edd2c
    Peter Zijlstra authored
    Vincent noted that the update_tg_load_avg() usage in commit:
    
      3d30544f ("sched/fair: Apply more PELT fixes")
    
    isn't entirely sufficient. We need to call this function every time
    cfs_rq->avg.load changes, this includes when update_cfs_rq_load_avg()
    returns true, but {attach,detach}_entity_load_avg() themselves also
    change it. This means we need to unconditionally call
    update_tg_load_avg().
    
    Also, add more comments.
    Reported-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    7c3edd2c
fair.c 232 KB