diff options
author | njl <njl@FreeBSD.org> | 2004-05-25 16:17:39 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-05-25 16:17:39 +0000 |
commit | 882c72b4e89217ce0c5cd3e08550e35e6cfc1c5a (patch) | |
tree | 0519fb1e371aa50725df8a9e8c075430984ba1f1 /sys/dev/acpica/acpi_button.c | |
parent | 3006bc70da5b3015f4097e9102837d74565796bb (diff) | |
download | FreeBSD-src-882c72b4e89217ce0c5cd3e08550e35e6cfc1c5a.zip FreeBSD-src-882c72b4e89217ce0c5cd3e08550e35e6cfc1c5a.tar.gz |
Enable GPE at runtime rather than suspend time. This is to match the
new behavior in ACPI-CA that defers GPE configuration. This is a temporary
measure while reworking the GPE interface.
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r-- | sys/dev/acpica/acpi_button.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c index 121ebec..004a54e 100644 --- a/sys/dev/acpica/acpi_button.c +++ b/sys/dev/acpica/acpi_button.c @@ -155,6 +155,7 @@ acpi_button_attach(device_t dev) return_VALUE (ENXIO); } acpi_device_enable_wake_capability(sc->button_handle, 1); + acpi_device_enable_wake_event(sc->button_handle); return_VALUE (0); } @@ -162,10 +163,11 @@ acpi_button_attach(device_t dev) static int acpi_button_suspend(device_t dev) { +#if 0 struct acpi_button_softc *sc; sc = device_get_softc(dev); - acpi_device_enable_wake_event(sc->button_handle); +#endif return (0); } |