mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 07:29:20 +03:00
Support for RUNTIME vs. WAKE GPEs
date 2004.03.26.22.31.00; author rmoore1; state Exp;
This commit is contained in:
parent
2c52e830da
commit
e56559f95d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user