[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.1-testing] cpufreq: P state stats aren't available if there is no cpufreq driver
# HG changeset patch # User David Vrabel <david.vrabel@xxxxxxxxxx> # Date 1344527091 -3600 # Node ID 985fb467d180f8149c0f1041461b77b2078a2fcd # Parent 859205b36fe990b9767b6bdc90dd4b4f5a6591f2 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@xxxxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> xen-unstable changeset: 25706:7fd5facb6084 xen-unstable date: Fri Aug 03 09:50:28 2012 +0200 --- diff -r 859205b36fe9 -r 985fb467d180 xen/drivers/acpi/pmstat.c --- a/xen/drivers/acpi/pmstat.c Thu Aug 09 15:47:42 2012 +0100 +++ b/xen/drivers/acpi/pmstat.c Thu Aug 09 16:44:51 2012 +0100 @@ -68,6 +68,8 @@ int do_get_pm_info(struct xen_sysctl_get case PMSTAT_PX: if ( !(xen_processor_pmbits & XEN_PROCESSOR_PM_PX) ) return -ENODEV; + if ( !cpufreq_driver ) + return -ENODEV; if ( !pmpt || !(pmpt->perf.init & XEN_PX_INIT) ) return -EINVAL; break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |