cpufreq: prevent lockup on reading scaling_available_frequencies
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 7 Oct 2015 20:50:44 +0000 (13:50 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Oct 2015 19:47:56 +0000 (21:47 +0200)
commit55582bccdc1e89ecc973c260d46e247df675d4df
treeb176a4ab379606a9fb13165c24596be55e035d3b
parente25303676e18a7947185a34e26dd08cf0c0ea573
cpufreq: prevent lockup on reading scaling_available_frequencies

When scaling_available_frequencies is read on an offlined cpu, then
either lockup or junk values are displayed. This is caused by
freed freq_table, which policy is using.

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