diff options
author | Robert Moore <Robert.Moore@intel.com> | 2018-09-26 09:23:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 09:23:21 -0700 |
commit | 8f81cbef4ca13d511cd9e2194cd650d77982afba (patch) | |
tree | 5556fd799be62e3d87c30d3828d3b9a4cef41cea | |
parent | 76a8a65e9e48f6f933d733e0530b4eb46b4a9d8c (diff) | |
parent | f22fa232d7eba8ef9f0e50267cde5693fd465757 (diff) | |
download | acpica-8f81cbef4ca13d511cd9e2194cd650d77982afba.tar.gz |
Merge pull request #408 from SchmErik/rafael-02
GPE: Clear status of all events when entering sleep states
-rw-r--r-- | source/components/hardware/hwsleep.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/components/hardware/hwsleep.c b/source/components/hardware/hwsleep.c index 7e435acec..bfd3211c5 100644 --- a/source/components/hardware/hwsleep.c +++ b/source/components/hardware/hwsleep.c @@ -205,16 +205,10 @@ AcpiHwLegacySleep ( { return_ACPI_STATUS (Status); } - /* - * If the target sleep state is S5, clear all GPEs and fixed events too - */ - if (SleepState == ACPI_STATE_S5) + Status = AcpiHwClearAcpiStatus(); + if (ACPI_FAILURE(Status)) { - Status = AcpiHwClearAcpiStatus(); - if (ACPI_FAILURE (Status)) - { - return_ACPI_STATUS (Status); - } + return_ACPI_STATUS(Status); } AcpiGbl_SystemAwakeAndRunning = FALSE; |