diff options
author | msmith <msmith@FreeBSD.org> | 2001-10-04 23:12:13 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 2001-10-04 23:12:13 +0000 |
commit | ba72040ab6da527cb4f4a663259ca7417976499a (patch) | |
tree | 3c5d09bf67f1ee0a9b4f77e77f3a31bdd33a253f /sys/contrib/dev/acpica/hwsleep.c | |
parent | 9d39e615a85d5e81e8442ec3bf65c8dff5e393c5 (diff) | |
download | FreeBSD-src-ba72040ab6da527cb4f4a663259ca7417976499a.zip FreeBSD-src-ba72040ab6da527cb4f4a663259ca7417976499a.tar.gz |
Import of the Intel ACPI CA 20010920 snapshot.
Diffstat (limited to 'sys/contrib/dev/acpica/hwsleep.c')
-rw-r--r-- | sys/contrib/dev/acpica/hwsleep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/contrib/dev/acpica/hwsleep.c b/sys/contrib/dev/acpica/hwsleep.c index d0d4ed8..7cbb6c8 100644 --- a/sys/contrib/dev/acpica/hwsleep.c +++ b/sys/contrib/dev/acpica/hwsleep.c @@ -2,7 +2,7 @@ /****************************************************************************** * * Name: hwsleep.c - ACPI Hardware Sleep/Wake Interface - * $Revision: 21 $ + * $Revision: 22 $ * *****************************************************************************/ @@ -270,7 +270,7 @@ AcpiEnterSleepState ( disable (); - /* TODO: disable all non-wake GPEs here */ + AcpiHwDisableNonWakeupGpes(); PM1AControl = (UINT16) AcpiHwRegisterRead (ACPI_MTX_LOCK, PM1_CONTROL); @@ -324,6 +324,8 @@ AcpiEnterSleepState ( } while (!AcpiHwRegisterBitAccess (ACPI_READ, ACPI_MTX_LOCK, WAK_STS)); + AcpiHwEnableNonWakeupGpes(); + enable (); return_ACPI_STATUS (AE_OK); @@ -365,7 +367,7 @@ AcpiLeaveSleepState ( /* _WAK returns stuff - do we want to look at it? */ - /* Re-enable GPEs */ + AcpiHwEnableNonWakeupGpes(); return_ACPI_STATUS (AE_OK); } |