|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH]Dom0: Fix for throttling while pr->id == -1
Fix for throttling while pr->id == -1
Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>
diff -r f40f4f86d5a2 drivers/acpi/processor_core.c
--- a/drivers/acpi/processor_core.c Mon Oct 27 13:47:07 2008 +0000
+++ b/drivers/acpi/processor_core.c Tue Oct 28 10:27:01 2008 +0800
@@ -513,8 +513,17 @@ static int acpi_processor_get_info(struc
#if defined(CONFIG_CPU_FREQ) || defined(CONFIG_PROCESSOR_EXTERNAL_CONTROL)
acpi_processor_ppc_has_changed(pr);
#endif
- acpi_processor_get_throttling_info(pr);
- acpi_processor_get_limit_info(pr);
+
+ /*
+ * pr->id may equal to -1 while processor_cntl_external enabled.
+ * throttle and thermal module don't support this case.
+ * Tx only works when dom0 vcpu == pcpu num by far, as we give
+ * control to dom0.
+ */
+ if (pr->id != -1) {
+ acpi_processor_get_throttling_info(pr);
+ acpi_processor_get_limit_info(pr);
+ }
return 0;
}
JimmyAttachment:
throttling-fix.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |