1. 11 Apr, 2013 1 commit
    • Viresh Kumar's avatar
      cpufreq: Call __cpufreq_governor() with correct policy->cpus mask · e4969eba
      Viresh Kumar authored
      __cpufreq_governor() must be called with a correct policy->cpus mask.
      In __cpufreq_remove_dev() we initially clear policy->cpus with
      cpumask_clear_cpu() and then call
      __cpufreq_governor(policy, CPUFREQ_GOV_POLICY_EXIT). If the governor
      is doing some per-cpu stuff in EXIT callback, this can create
      uncertain behavior.
      
      Generic governors in drivers/cpufreq/ doesn't do any per-cpu stuff
      in EXIT callback and so we don't face any issues currently. But its
      better to keep the code clean, so we don't face any issues in future.
      
      Now, we call cpumask_clear_cpu() only when multiple cpus are managed
      by policy.
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      e4969eba
  2. 10 Apr, 2013 18 commits
  3. 08 Apr, 2013 6 commits
  4. 02 Apr, 2013 9 commits
  5. 31 Mar, 2013 6 commits