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.
This commit is contained in:
njl 2004-05-25 16:17:39 +00:00
parent 3006bc70da
commit 882c72b4e8
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}

View File

@ -108,6 +108,7 @@ acpi_lid_attach(device_t dev)
AcpiInstallNotifyHandler(sc->lid_handle, ACPI_DEVICE_NOTIFY,
acpi_lid_notify_handler, sc);
acpi_device_enable_wake_capability(sc->lid_handle, 1);
acpi_device_enable_wake_event(sc->lid_handle);
return_VALUE (0);
}
@ -115,10 +116,11 @@ acpi_lid_attach(device_t dev)
static int
acpi_lid_suspend(device_t dev)
{
#if 0
struct acpi_lid_softc *sc;
sc = device_get_softc(dev);
acpi_device_enable_wake_event(sc->lid_handle);
#endif
return (0);
}