cpufreq: CPPC: Initialize and check CPUFreq CPU co-ord type correctly
authorAshwin Chaugule <ashwin.chaugule@linaro.org>
Thu, 19 Nov 2015 15:40:07 +0000 (10:40 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2015 21:21:18 +0000 (22:21 +0100)
commit9dc17917733f5a53ef970ac95a48d2dfb7dc7202
tree6a672f35036a9b4985662e22caf04a80426948b2
parentd29d67357db8dad08f97162bbeb51e4975ee67fd
cpufreq: CPPC: Initialize and check CPUFreq CPU co-ord type correctly

The CPU policy struct indicates the co-ordination type
for all CPUs of a common freq domain. Initialize it
correctly using the CPU specific data gathered from
CPPC ACPI lib via acpi_get_psd_map().

The PSD object is optional, so the cpu->shared_type
can also be 0. So instead of assuming any value other
than SW_ANY(0xFD) is unsupported, explictly check
if shared_type is SW_ALL and then bail.

Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c