diff options
| author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2008-02-06 01:38:04 +0000 |
|---|---|---|
| committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2008-02-06 01:38:04 +0000 |
| commit | 0e6611dfd8544fad765aa6aa419b0b5dafb19337 (patch) | |
| tree | b94118d0605cf2670b890bd3bbf237fc32841918 /sys | |
| parent | 5ffca72edfcb421ed969fb437eceee93086b374e (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/acpica/acpi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index cc35e2c59dab..dba4edd3f936 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2195,6 +2195,16 @@ acpi_ReqSleepState(struct acpi_softc *sc, int state) } } + /* If devd(8) is not running, immediately enter the sleep state. */ + if (devctl_process_running() == FALSE) { + ACPI_UNLOCK(acpi); + if (ACPI_SUCCESS(acpi_EnterSleepState(sc, sc->acpi_next_sstate))) { + return (0); + } else { + return (ENXIO); + } + } + /* Now notify devd(8) also. */ acpi_UserNotify("Suspend", ACPI_ROOT_OBJECT, state); |
