1. 02 5月, 2016 1 次提交
  2. 19 4月, 2016 1 次提交
    • R
      cpufreq: Abort cpufreq_update_current_freq() for cpufreq_suspended set · c9d9c929
      Rafael J. Wysocki 提交于
      Since governor operations are generally skipped if cpufreq_suspended
      is set, cpufreq_start_governor() should do nothing in that case.
      
      That function is called in the cpufreq_online() path, and may also
      be called from cpufreq_offline() in some cases, which are invoked
      by the nonboot CPUs disabing/enabling code during system suspend
      to RAM and resume.  That happens when all devices have been
      suspended, so if the cpufreq driver relies on things like I2C to
      get the current frequency, it may not be ready to do that then.
      
      To prevent problems from happening for this reason, make
      cpufreq_update_current_freq(), which is the only function invoked
      by cpufreq_start_governor() that doesn't check cpufreq_suspended
      already, return 0 upfront if cpufreq_suspended is set.
      
      Fixes: 3bbf8fe3 (cpufreq: Always update current frequency before startig governor)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      c9d9c929
  3. 09 4月, 2016 3 次提交
  4. 02 4月, 2016 1 次提交
    • R
      cpufreq: Support for fast frequency switching · b7898fda
      Rafael J. Wysocki 提交于
      Modify the ACPI cpufreq driver to provide a method for switching
      CPU frequencies from interrupt context and update the cpufreq core
      to support that method if available.
      
      Introduce a new cpufreq driver callback, ->fast_switch, to be
      invoked for frequency switching from interrupt context by (future)
      governors supporting that feature via (new) helper function
      cpufreq_driver_fast_switch().
      
      Add two new policy flags, fast_switch_possible, to be set by the
      cpufreq driver if fast frequency switching can be used for the
      given policy and fast_switch_enabled, to be set by the governor
      if it is going to use fast frequency switching for the given
      policy.  Also add a helper for setting the latter.
      
      Since fast frequency switching is inherently incompatible with
      cpufreq transition notifiers, make it possible to set the
      fast_switch_enabled only if there are no transition notifiers
      already registered and make the registration of new transition
      notifiers fail if fast_switch_enabled is set for at least one
      policy.
      
      Implement the ->fast_switch callback in the ACPI cpufreq driver
      and make it set fast_switch_possible during policy initialization
      as appropriate.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      b7898fda
  5. 23 3月, 2016 3 次提交
  6. 18 3月, 2016 1 次提交
  7. 11 3月, 2016 1 次提交
  8. 10 3月, 2016 1 次提交
  9. 09 3月, 2016 9 次提交
  10. 27 2月, 2016 1 次提交
  11. 22 2月, 2016 2 次提交
  12. 13 2月, 2016 1 次提交
  13. 05 2月, 2016 1 次提交
  14. 28 1月, 2016 1 次提交
  15. 01 1月, 2016 2 次提交
  16. 03 12月, 2015 1 次提交
  17. 24 11月, 2015 1 次提交
  18. 28 10月, 2015 5 次提交
  19. 14 10月, 2015 1 次提交
  20. 09 10月, 2015 1 次提交
  21. 16 9月, 2015 1 次提交
  22. 09 9月, 2015 1 次提交