ia64/linux-2.6.18-xen.hg

changeset 763:ff9683032b76

dom0: Enable C3 without bm control only for CST based C3

commit ed3110efb538d7acbf635095c1382118f7414f75
Author: Venki Pallipadi <venkatesh.pallipadi@intel.com>
Date: Tue Jul 31 12:04:31 2007 -0700

ACPI: fix "Time Problems with 2.6.23-rc1-gf695baf2"

Enable C3 without bm control only for CST based C3.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Dec 13 16:00:43 2008 +0000 (2008-12-13)
parents a070228ac76e
children 618fc299e2f1
files drivers/acpi/processor_idle.c
line diff
     1.1 --- a/drivers/acpi/processor_idle.c	Thu Dec 11 13:38:48 2008 +0000
     1.2 +++ b/drivers/acpi/processor_idle.c	Sat Dec 13 16:00:43 2008 +0000
     1.3 @@ -857,11 +857,17 @@ static void acpi_processor_power_verify_
     1.4  	}
     1.5  
     1.6  	if (pr->flags.bm_check) {
     1.7 -		/* bus mastering control is necessary */
     1.8  		if (!pr->flags.bm_control) {
     1.9 -			ACPI_DEBUG_PRINT((ACPI_DB_INFO,
    1.10 -					  "C3 support requires bus mastering control\n"));
    1.11 -			return;
    1.12 +			if (pr->flags.has_cst != 1) {
    1.13 +				/* bus mastering control is necessary */
    1.14 +				ACPI_DEBUG_PRINT((ACPI_DB_INFO,
    1.15 +					"C3 support requires BM control\n"));
    1.16 +				return;
    1.17 +			} else {
    1.18 +				/* Here we enter C3 without bus mastering */
    1.19 +				ACPI_DEBUG_PRINT((ACPI_DB_INFO,
    1.20 +					"C3 support without BM control\n"));
    1.21 +			}
    1.22  		}
    1.23  	} else {
    1.24  		/*