From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/ACPI: allow passing down C1 information if no other C-states exist Date: Thu, 25 Aug 2011 13:53:19 +0100 Message-ID: <4E5661DF02000078000533A3@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part9AB58FAF.1__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" Cc: Kevin Tian List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part9AB58FAF.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Otherwise Xen may end up not using MWAIT despite its availability. Signed-off-by: Jan Beulich --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -780,7 +780,7 @@ static int acpi_processor_get_power_info current_count)); =20 /* Validate number of power states discovered */ - if (current_count < 2) + if (current_count < 1 + !processor_pm_external()) status =3D -EFAULT; =20 end: --=__Part9AB58FAF.1__= Content-Type: text/plain; name="xen-acpi-pass-C1.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-acpi-pass-C1.patch" Subject: ACPI: allow passing down C1 information if no other C-states = exist=0A=0AOtherwise Xen may end up not using MWAIT despite its availabilit= y.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/drivers/acpi/processor_idle.c=0A+++ b/drivers/acpi/processor_idle.c=0A@@ = -780,7 +780,7 @@ static int acpi_processor_get_power_info=0A = current_count));=0A =0A /* Validate number of power states = discovered */=0A- if (current_count < 2)=0A+ if (current_count = < 1 + !processor_pm_external())=0A status =3D -EFAULT;=0A =0A = end:=0A --=__Part9AB58FAF.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part9AB58FAF.1__=--