cpufreq: Manage only online cpus
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 12 Jan 2013 05:14:38 +0000 (05:14 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Feb 2013 23:01:14 +0000 (00:01 +0100)
commit643ae6e81dd65b333a13259852405fc9f764ac76
treef8ce2a955d9aabdab9834caa167a7d5d1a174827
parent8ee2ec51d0916b8c8c4387fb6da5904900ef6b98
cpufreq: Manage only online cpus

cpufreq core doesn't manage offline cpus and if driver->init() has returned
mask including offline cpus, it may result in unwanted behavior by cpufreq core
or governors.

We need to get only online cpus in this mask. There are two places to fix this
mask, cpufreq core and cpufreq driver. It makes sense to do this at common place
and hence is done in core.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c