commit | fdd320da84c63092fe6e155cb7b8d80f7f765fa9 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Jul 30 01:45:07 2015 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Fri Jul 31 22:01:19 2015 +0200 |
tree | 43945999294bf7359160ef43faefcda25186ffe0 | |
parent | 194d99c7e3ce54a8c7d8adf79fb1d8ad49a9bf9f [diff] |
cpufreq: Lock CPU online/offline in cpufreq_register_driver() To protect against races with concurrent CPU online/offline, call get_online_cpus() before registering a cpufreq driver. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>