cpufreq: P state stats aren't available if there is no cpufreq driver
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 3 Aug 2012 07:50:28 +0000 (09:50 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 3 Aug 2012 07:50:28 +0000 (09:50 +0200)
commite50c91ab1a922304ab0b2af20981c0994b3a7840
tree4d7424055378764441d4fcc2f1f636983847dfbb
parent097baed0b10099cd43477f81bf18cf4dd4a58ecf
cpufreq: P state stats aren't available if there is no cpufreq driver

If there is no cpufreq driver (e.g., with an AMD Opteron 8212) then
reading the P state statistics causes a deadlock as an uninitialized
spinlock is locked in do_get_pm_info(). The spinlock is initialized in
cpufreq_statistic_init() which is not called if cpufreq_driver == NULL.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/acpi/pmstat.c