1. 22 11月, 2016 1 次提交
    • J
      ARM: 8621/3: parse cpu capacity-dmips-mhz from DT · 06073ee2
      Juri Lelli 提交于
      With the introduction of cpu capacity-dmips-mhz bindings, CPU capacities
      can now be calculated from values extracted from DT and information
      coming from cpufreq. Add parsing of DT information at boot time, and
      complement it with cpufreq information. We keep code that can produce
      same information, based on different DT properties and hard-coded
      values, as fall-back for backward compatibility.
      
      Caveat: the information provided by this patch will start to be used in
      the future. We need to #define arch_scale_cpu_capacity to something
      provided in arch, so that scheduler's default implementation (which gets
      used if arch_scale_cpu_capacity is not defined) is overwritten.
      Signed-off-by: NJuri Lelli <juri.lelli@arm.com>
      Acked-by: NVincent Guittot <vincent.guittot@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      06073ee2
  2. 27 1月, 2016 1 次提交
  3. 21 11月, 2014 1 次提交
  4. 19 9月, 2014 1 次提交
  5. 02 7月, 2014 1 次提交
  6. 05 6月, 2014 1 次提交
    • N
      sched: Final power vs. capacity cleanups · ca8ce3d0
      Nicolas Pitre 提交于
      It is better not to think about compute capacity as being equivalent
      to "CPU power".  The upcoming "power aware" scheduler work may create
      confusion with the notion of energy consumption if "power" is used too
      liberally.
      
      This contains the architecture visible changes.  Incidentally, only ARM
      takes advantage of the available pow^H^H^Hcapacity scaling hooks and
      therefore those changes outside kernel/sched/ are confined to one ARM
      specific file.  The default arch_scale_smt_power() hook is not overridden
      by anyone.
      
      Replacements are as follows:
      
      	arch_scale_freq_power  --> arch_scale_freq_capacity
      	arch_scale_smt_power   --> arch_scale_smt_capacity
      	SCHED_POWER_SCALE      --> SCHED_CAPACITY_SCALE
      	SCHED_POWER_SHIFT      --> SCHED_CAPACITY_SHIFT
      
      The local usage of "power" in arch/arm/kernel/topology.c is also changed
      to "capacity" as appropriate.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      Signed-off-by: NPeter Zijlstra <peterz@infradead.org>
      Cc: Vincent Guittot <vincent.guittot@linaro.org>
      Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
      Cc: Morten Rasmussen <morten.rasmussen@arm.com>
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: linaro-kernel@lists.linaro.org
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Mark Brown <broonie@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
      Cc: Vincent Guittot <vincent.guittot@linaro.org>
      Cc: devicetree@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Link: http://lkml.kernel.org/n/tip-48zba9qbznvglwelgq2cfygh@git.kernel.orgSigned-off-by: NIngo Molnar <mingo@kernel.org>
      ca8ce3d0
  7. 07 5月, 2014 1 次提交
  8. 15 4月, 2014 1 次提交
  9. 29 12月, 2013 1 次提交
  10. 21 8月, 2013 1 次提交
  11. 06 6月, 2013 1 次提交
  12. 18 3月, 2013 1 次提交
  13. 19 11月, 2012 2 次提交
  14. 11 8月, 2012 1 次提交
  15. 13 7月, 2012 3 次提交
  16. 01 12月, 2011 1 次提交
  17. 17 10月, 2011 1 次提交
    • V
      ARM: 7011/1: Add ARM cpu topology definition · c9018aab
      Vincent Guittot 提交于
      The affinity between ARM processors is defined in the MPIDR register.
      We can identify which processors are in the same cluster,
      and which ones have performance interdependency. We can define the
      cpu topology of ARM platform, that is then used by sched_mc and sched_smt.
      
      The default state of sched_mc and sched_smt config is disable.
      When enabled, the behavior of the scheduler can be modified with
      sched_mc_power_savings and sched_smt_power_savings sysfs interfaces.
      
      Changes since v4 :
      *  Remove unnecessary parentheses and blank lines
      
      Changes since v3 :
      * Update the format of printk message
      * Remove blank line
      
      Changes since v2 :
      * Update the commit message and some comments
      
      Changes since v1 :
      * Update the commit message
      * Add read_cpuid_mpidr in arch/arm/include/asm/cputype.h
      * Modify header of arch/arm/kernel/topology.c
      * Modify tests and manipulation of MPIDR's bitfields
      * Modify the place and dependancy of the config
      * Modify Noop functions
      Signed-off-by: NVincent Guittot <vincent.guittot@linaro.org>
      Reviewed-by: NAmit Kucheria <amit.kucheria@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      c9018aab