diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-12-23 04:35:14 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-12-23 04:35:14 +0000 |
commit | f2e6c39316f68b7ccc7abb766f82ed421c8e22b4 (patch) | |
tree | 2c9acd96afc9afb47a31a88c97ac4907faee46d9 /source/components/hardware/hwsleep.c | |
parent | a56e3c255d5c5dfa4dd3a2fda4705a1607a6b7f3 (diff) |
Notes
Diffstat (limited to 'source/components/hardware/hwsleep.c')
-rw-r--r-- | source/components/hardware/hwsleep.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/components/hardware/hwsleep.c b/source/components/hardware/hwsleep.c index 13cf255137fc..2431d9a8d42b 100644 --- a/source/components/hardware/hwsleep.c +++ b/source/components/hardware/hwsleep.c @@ -159,6 +159,16 @@ AcpiHwLegacySleep ( ACPI_FLUSH_CPU_CACHE (); + Status = AcpiOsEnterSleep (SleepState, Pm1aControl, Pm1bControl); + if (Status == AE_CTRL_TERMINATE) + { + return_ACPI_STATUS (AE_OK); + } + if (ACPI_FAILURE (Status)) + { + return_ACPI_STATUS (Status); + } + /* Write #2: Write both SLP_TYP + SLP_EN */ Status = AcpiHwWritePm1Control (Pm1aControl, Pm1bControl); |