summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-05-28 07:04:09 +0000
committernjl <njl@FreeBSD.org>2004-05-28 07:04:09 +0000
commit61d1e128a80566ea69193f0ae2c2ea5e68301c9d (patch)
treed559ed5835dc0c9c7e8169840b6c2a9ea1505b66 /sys/dev/acpica/acpi_button.c
parent41bb6f98ab690ebf69ea3c6126c7dc11175d4f5e (diff)
downloadFreeBSD-src-61d1e128a80566ea69193f0ae2c2ea5e68301c9d.zip
FreeBSD-src-61d1e128a80566ea69193f0ae2c2ea5e68301c9d.tar.gz
Update the new suspend/resume GPE methods to properly limit the GPE
based on the destination sleep state. Add a method to restore the old state on resume. This is needed for the case of suspending to a very low state disabling a GPE (i.e. S4), resuming, and then suspending to a higher state (i.e. S3). This case should now keep the proper GPEs enabled.
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index b96c5fe..056c3d0 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -175,6 +175,7 @@ acpi_button_suspend(device_t dev)
static int
acpi_button_resume(device_t dev)
{
+ acpi_wake_run_prep(dev);
return (0);
}
OpenPOWER on IntegriCloud