Support for RUNTIME vs. WAKE GPEs

date	2004.03.26.22.31.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:58:07 +00:00
parent 2c52e830da
commit e56559f95d

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Name: hwsleep.c - ACPI Hardware Sleep/Wake Interface
* $Revision: 1.65 $
* $Revision: 1.66 $
*
*****************************************************************************/
@ -374,7 +374,11 @@ AcpiEnterSleepState (
}
}
Status = AcpiHwDisableNonWakeupGpes ();
/*
* 1) Disable all runtime GPEs
* 2) Enable all wakeup GPEs
*/
Status = AcpiHwPrepareGpesForSleep ();
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
@ -515,7 +519,11 @@ AcpiEnterSleepStateS4bios (
return_ACPI_STATUS (Status);
}
Status = AcpiHwDisableNonWakeupGpes ();
/*
* 1) Disable all runtime GPEs
* 2) Enable all wakeup GPEs
*/
Status = AcpiHwPrepareGpesForSleep ();
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);
@ -635,10 +643,14 @@ AcpiLeaveSleepState (
{
ACPI_REPORT_ERROR (("Method _WAK failed, %s\n", AcpiFormatException (Status)));
}
/* TBD: _WAK "sometimes" returns stuff - do we want to look at it? */
/* _WAK returns stuff - do we want to look at it? */
Status = AcpiHwEnableNonWakeupGpes ();
/*
* Restore the GPEs:
* 1) Disable all wakeup GPEs
* 2) Enable all runtime GPEs
*/
Status = AcpiHwRestoreGpesOnWake ();
if (ACPI_FAILURE (Status))
{
return_ACPI_STATUS (Status);