Skip to content
  • Morten Rasmussen's avatar
    sched: Include blocked load in weighted_cpuload · 2d05f842
    Morten Rasmussen authored
    
    
    Adds blocked_load_avg to weighted_cpuload() to take recently runnable
    tasks into account in load-balancing decisions. This changes the nature
    of weighted_cpuload() as it may >0 while there are currently no runnable
    tasks on the cpu rq. Hence care must be taken in the load-balance code
    to use cfs_rq->runnable_load_avg or nr_running when current rq status is
    needed.
    
    This patch is highly experimental and will probably have require
    additional updates of the users of weighted_cpuload().
    
    cc: Ingo Molnar <mingo@redhat.com>
    cc: Peter Zijlstra <peterz@infradead.org>
    
    Signed-off-by: default avatarMorten Rasmussen <morten.rasmussen@arm.com>
    2d05f842