• Vincent Guittot's avatar
    cpufreq/schedutil: Use RT utilization tracking · 3ae117c6
    Vincent Guittot authored
    Add both CFS and RT utilization when selecting an OPP for CFS tasks as RT
    can preempt and steal CFS's running time.
    
    RT util_avg is used to take into account the utilization of RT tasks
    on the CPU when selecting OPP. If a RT task migrate, the RT utilization
    will not migrate but will decay over time. On an overloaded CPU, CFS
    utilization reflects the remaining utilization avialable on CPU. When RT
    task migrates, the CFS utilization will increase when tasks will start to
    use the newly available capacity. At the same pace, RT utilization will
    decay and both variations will compensate each other to keep unchanged
    overall utilization and will prevent any OPP drop.
    Signed-off-by: default avatarVincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Morten.Rasmussen@arm.com
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: claudio@evidence.eu.com
    Cc: daniel.lezcano@linaro.org
    Cc: dietmar.eggemann@arm.com
    Cc: joel@joelfernandes.org
    Cc: juri.lelli@redhat.com
    Cc: luca.abeni@santannapisa.it
    Cc: patrick.bellasi@arm.com
    Cc: quentin.perret@arm.com
    Cc: rjw@rjwysocki.net
    Cc: valentin.schneider@arm.com
    Link: http://lkml.kernel.org/r/1530200714-4504-4-git-send-email-vincent.guittot@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    3ae117c6
cpufreq_schedutil.c 22.7 KB