• Juri Lelli's avatar
    sched/cpufreq: Move arch_scale_{freq,cpu}_capacity() outside of #ifdef CONFIG_SMP · 7e1a9208
    Juri Lelli authored
    Currently, frequency and cpu capacity scaling is only performed on
    CONFIG_SMP systems (as CFS PELT signals are only present for such
    systems). However, other scheduling classes want to do freq/cpu scaling,
    and for !CONFIG_SMP configurations as well.
    
    arch_scale_freq_capacity() is useful to implement frequency scaling even
    on !CONFIG_SMP platforms, so we simply move it outside CONFIG_SMP
    ifdeffery.
    
    Even if arch_scale_cpu_capacity() is not useful on !CONFIG_SMP platforms,
    we make a default implementation available for such configurations anyway
    to simplify scheduler code doing CPU scale invariance.
    Signed-off-by: default avatarJuri Lelli <juri.lelli@arm.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: alessio.balsini@arm.com
    Cc: bristot@redhat.com
    Cc: claudio@evidence.eu.com
    Cc: dietmar.eggemann@arm.com
    Cc: joelaf@google.com
    Cc: juri.lelli@redhat.com
    Cc: luca.abeni@santannapisa.it
    Cc: mathieu.poirier@linaro.org
    Cc: morten.rasmussen@arm.com
    Cc: patrick.bellasi@arm.com
    Cc: rjw@rjwysocki.net
    Cc: tkjos@android.com
    Cc: tommaso.cucinotta@santannapisa.it
    Cc: vincent.guittot@linaro.org
    Cc: viresh.kumar@linaro.org
    Link: http://lkml.kernel.org/r/20171204102325.5110-8-juri.lelli@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    7e1a9208
topology.h 6.18 KB