diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2007-09-13 01:37:17 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2007-09-13 01:37:17 +0000 |
| commit | b6648efd3b69a5c7fa303116b5da8e5223249b4c (patch) | |
| tree | 73e2da748648d49e6bc1e2b82f5c94580dcbb3bb | |
| parent | 6037400b5a7c4abd3c4c4b08e04341c6b72d3014 (diff) | |
Notes
| -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 06de4971c543..5e2105b38183 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2173,6 +2173,11 @@ acpi_ReqSleepState(struct acpi_softc *sc, int state) return (ENXIO); } +#if !defined(__i386__) + /* This platform does not support acpi suspend/resume. */ + return (EOPNOTSUPP); +#endif + /* If a suspend request is already in progress, just return. */ ACPI_LOCK(acpi); if (sc->acpi_next_sstate != 0) { @@ -2218,6 +2223,11 @@ acpi_AckSleepState(struct apm_clone_data *clone, int error) struct acpi_softc *sc; int ret, sleeping; +#if !defined(__i386__) + /* This platform does not support acpi suspend/resume. */ + return (EOPNOTSUPP); +#endif + /* If no pending sleep state, return an error. */ ACPI_LOCK(acpi); sc = clone->acpi_sc; |
