1. 06 1月, 2014 1 次提交
    • V
      cpufreq: Mark ARM drivers with CPUFREQ_NEED_INITIAL_FREQ_CHECK flag · ae6b4271
      Viresh Kumar 提交于
      Sometimes boot loaders set CPU frequency to a value outside of frequency table
      present with cpufreq core. In such cases CPU might be unstable if it has to run
      on that frequency for long duration of time and so its better to set it to a
      frequency which is specified in frequency table.
      
      On some systems we can't really say what frequency we're running at the moment
      and so for these we shouldn't check if we are running at a frequency present in
      frequency table. And so we really can't force this for all the cpufreq drivers.
      
      Hence we are created another flag here: CPUFREQ_NEED_INITIAL_FREQ_CHECK that
      will be marked by platforms which want to go for this check at boot time.
      
      Initially this is done for all ARM platforms but others may follow if required.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      ae6b4271
  2. 14 11月, 2013 1 次提交
  3. 31 10月, 2013 1 次提交
  4. 26 10月, 2013 4 次提交
  5. 16 10月, 2013 3 次提交
  6. 01 10月, 2013 2 次提交
  7. 15 7月, 2013 1 次提交
    • P
      cpufreq: delete __cpuinit usage from all cpufreq files · 2760984f
      Paul Gortmaker 提交于
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      This removes all the drivers/cpufreq uses of the __cpuinit macros
      from all C files.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      [v2: leave 2nd lines of args misaligned as requested by Viresh]
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Viresh Kumar <viresh.kumar@linaro.org>
      Cc: cpufreq@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Acked-by: NDirk Brandewie <dirk.j.brandewie@intel.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      2760984f
  8. 24 6月, 2013 1 次提交
    • V
      cpufreq: omap: call CPUFREQ_POSTCHANGE notfier in error cases · 44a49a23
      Viresh Kumar 提交于
      PRECHANGE and POSTCHANGE notifiers must be called in groups, i.e either both
      should be called or both shouldn't be.
      
      In case we have started PRECHANGE notifier and found an error, we must call
      POSTCHANGE notifier with freqs.new = freqs.old to guarantee that sequence of
      calling notifiers is complete.
      
      Omap driver was taking care of it well, but wasn't restoring freqs.new to
      freqs.old in some cases. I wasn't required to add code for it as moving
      PRECHANGE notifier down was a better option, so that we call it just before
      starting frequency transition.
      Acked-by: NSantosh Shilimkar <santosh.shilimkar@ti.com>
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      44a49a23
  9. 10 4月, 2013 1 次提交
    • N
      cpufreq: OMAP: instantiate omap-cpufreq as a platform_driver · 49ded525
      Nishanth Menon 提交于
      As multi-platform build is being adopted by more and more ARM platforms,
      initcall function should be used very carefully.  For example, when
      CONFIG_ARM_OMAP2PLUS_CPUFREQ is built in the kernel, omap_cpufreq_init()
      will be called on all the platforms to initialize omap-cpufreq driver.
      
      Further, on OMAP, we now use Soc generic cpufreq-cpu0 driver using device
      tree entries.  To allow cpufreq-cpu0 and omap-cpufreq drivers to co-exist
      for OMAP in a single image, we need to ensure the following:
       1. With device tree boot, we use cpufreq-cpu0
       2. With non device tree boot, we use omap-cpufreq
      
      In the case of (1), we will have cpu OPPs and regulator registered
      as part of the device tree nodes, to ensure that omap-cpufreq
      and cpufreq-cpu0 don't conflict in managing the frequency of the
      same CPU, we should not permit omap-cpufreq to be probed.
      
      In the case of (2), we will not have the cpufreq-cpu0 device, hence
      only omap-cpufreq will be active.
      
      To eliminate this undesired these effects, we change omap-cpufreq
      driver to have it instantiated as a platform_driver and register
      "omap-cpufreq" device only when booted without device tree nodes on
      OMAP platforms.
      
      This allows the following:
       a) Will only run on platforms that create the platform_device
          "omap-cpufreq".
       b) Since the platform_device is registered only when device tree nodes
          are *not* populated, omap-cpufreq driver does not conflict with
          the usage of cpufreq-cpu0 driver which is used on OMAP platforms when
          device tree nodes are present.
      
      Inspired by commit 5553f9e2
      (cpufreq: instantiate cpufreq-cpu0 as a platform_driver)
      
      [robherring2@gmail.com: reported conflict of omap-cpufreq vs other
      driver in an non-device tree supported boot]
      Reported-by: NRob Herring <robherring2@gmail.com>
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NKevin Hilman <khilman@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      49ded525
  10. 02 4月, 2013 2 次提交
  11. 02 2月, 2013 1 次提交
  12. 22 1月, 2013 1 次提交
  13. 09 10月, 2012 4 次提交
  14. 20 9月, 2012 1 次提交
  15. 15 9月, 2012 1 次提交
  16. 09 8月, 2012 1 次提交
  17. 29 3月, 2012 1 次提交
  18. 03 3月, 2012 1 次提交
  19. 22 2月, 2012 1 次提交
    • K
      cpufreq: OMAP: scale voltage along with frequency · 53dfe8a8
      Kevin Hilman 提交于
      Use the regulator framework to get the voltage regulator associated
      with the MPU voltage domain and use it to scale voltage along with
      frequency.
      
      While here, CONFIG_CPU_FREQ_DEBUG doesn't exist anymore, so move
      debug prints to use dev_dbg().
      
      Special thanks to Afzal Mohammed for suggestions on more robust error
      checking.
      
      Cc: Afzal Mohammed  <afzal@ti.com>
      Signed-off-by: NKevin Hilman <khilman@ti.com>
      53dfe8a8
  20. 11 11月, 2011 1 次提交
  21. 09 11月, 2011 10 次提交