Page MenuHomeFreeBSD

acpi: Use only AcpiGetSleepTypeData() to determine Sx support
AcceptedPublic

Authored by olce on Fri, Jan 9, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 12, 7:34 PM
Unknown Object (File)
Sat, Jan 10, 1:09 AM
Unknown Object (File)
Fri, Jan 9, 7:35 PM
Subscribers

Details

Reviewers
jhb
obiwac
Summary

Previously, we would first call AcpiEvaluateObject() to execute \_Sx
before calling AcpiGetSleepTypeData(). This was unnecessary, as
AcpiGetSleepTypeData() performs the same call itself. While doing so,
the latter function logs any other error than AE_NOT_FOUND (which
indicates that a particular sleep state is not supported), which most
probably is an added benefit of this change.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69767
Build 66650: arc lint + arc unit