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> Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
cpufreq: Manage only online cpus  cpufreq core doesn't manage offline cpus 3/3
Revert "rwsem: steal writing sem for better performance - https://lkml.org/lkml/2013/1/29/84"

This reverts commit c0430fcce1efedb2678224974cffb8f39f6e4821.