From b3df0038cbca9ac2750d738c5af9dbe5340e2bac Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 27 Aug 2011 12:12:38 +0100 Subject: [PATCH] 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 --- drivers/acpi/processor_idle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5