Skip to contentSkip to conversation

linux-2.6.18/ACPI: allow passing down C1 information if no other C-states exist

PATCH New Jan Beulich 1 participant 1 message Aug 25, 2011 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-2.6.18/ACPI: allow passing down C1 information if no other C-states exist

Otherwise Xen may end up not using MWAIT despite its availability.

drivers/acpi/processor_idle.c +1 -1
@@ -780,7 +780,7 @@ static int acpi_processor_get_power_info
 			  current_count));
 
 	/* Validate number of power states discovered */
-	if (current_count < 2)
+	if (current_count < 1 + !processor_pm_external())
 		status = -EFAULT;
 
       end:

Subject: ACPI: allow passing down C1 information if no other C-states exist

Otherwise Xen may end up not using MWAIT despite its availability.

drivers/acpi/processor_idle.c +1 -1
@@ -780,7 +780,7 @@ static int acpi_processor_get_power_info
 			  current_count));
 
 	/* Validate number of power states discovered */
-	if (current_count < 2)
+	if (current_count < 1 + !processor_pm_external())
 		status = -EFAULT;
 
       end:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel