Skip to content

Commit

Permalink
Do not use extended sleep registers unless HW-reduced bit is set.
Browse files Browse the repository at this point in the history
Previous implementation incorrectly used the ACPI 5.0 extended sleep
registers if they were simply populated. This caused problems on some
non-HW-reduced machines. As per the ACPI spec,
they should only be used if the HW-reduced bit is set.
Lv Zheng, ACPICA BZ 1020.
  • Loading branch information
acpibob committed May 1, 2013
1 parent 2dbd8e1 commit 34f226f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions source/components/hardware/hwxfsleep.c
Expand Up @@ -339,13 +339,14 @@ AcpiHwSleepDispatch (


#if (!ACPI_REDUCED_HARDWARE)

/*
* If the Hardware Reduced flag is set (from the FADT), we must
* use the extended sleep registers
* use the extended sleep registers (FADT). Note: As per the ACPI
* specification, these extended registers are to be used for HW-reduced
* platforms only. They are not general-purpose replacements for the
* legacy PM register sleep support.
*/
if (AcpiGbl_ReducedHardware ||
AcpiGbl_FADT.SleepControl.Address)
if (AcpiGbl_ReducedHardware)
{
Status = SleepFunctions->ExtendedFunction (SleepState);
}
Expand Down

0 comments on commit 34f226f

Please sign in to comment.