diff options
Diffstat (limited to 'source/components/hardware/hwsleep.c')
-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 7e435acecba01..bfd3211c554ae 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; |