Commit the hwsleep.c patch for suspend/resume onto the vendor branch.

This has supposedly been incorporated into the Intel code already, so this
will get cleanly replaced with the "official" version when it is next
imported and will not cause any conflicts or hiccups.
This commit is contained in:
Peter Wemm 2001-07-25 22:10:56 +00:00
parent 9d5c013ca4
commit 4f12dbc3f6

View File

@ -298,8 +298,10 @@ AcpiEnterSleepState (
/* wait a second, then try again */
AcpiOsStall(1000000);
AcpiHwRegisterWrite(ACPI_MTX_LOCK, PM1_CONTROL,
(1 << AcpiHwGetBitShift (SLP_EN_MASK)));
if (SleepState > ACPI_STATE_S1) {
AcpiHwRegisterWrite(ACPI_MTX_LOCK, PM1_CONTROL,
(1 << AcpiHwGetBitShift (SLP_EN_MASK)));
}
enable();