From: Keir Fraser Date: Sat, 27 Aug 2011 11:12:38 +0000 (+0100) Subject: xen/ACPI: allow passing down C1 information if no other C-states exist X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b3df0038cbca9ac2750d738c5af9dbe5340e2bac;p=people%2Froyger%2Flinux-2.6.18-xen.git xen/ACPI: allow passing down C1 information if no other C-states exist Otherwise Xen may end up not using MWAIT despite its availability. Signed-off-by: Jan Beulich Signed-off-by: Keir Fraser --- diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 8c042f5b..1b441388 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -780,7 +780,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) current_count)); /* Validate number of power states discovered */ - if (current_count < 2) + if (current_count < (processor_pm_external() ? 1 : 2)) status = -EFAULT; end: