Page MenuHomeFreeBSD

acpi: Abstract over ACPI Sx sleep states with `enum sleep_type`
Needs ReviewPublic

Authored by obiwac_gmail.com on Jan 30 2025, 6:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Feb 25, 5:30 AM
Unknown Object (File)
Mon, Feb 24, 4:02 PM
Unknown Object (File)
Feb 17 2025, 4:35 AM
Unknown Object (File)
Feb 9 2025, 8:18 PM
Unknown Object (File)
Feb 7 2025, 11:14 PM
Unknown Object (File)
Feb 7 2025, 5:06 PM
Unknown Object (File)
Feb 5 2025, 2:55 AM

Details

Reviewers
jkim
jhb
imp
Summary

Borrow the idea to abstract over ACPI Sx sleep types with enum sleep_type from Ben's s2idle patch, D17675, but use this everywhere it makes sense to.

This is in preparation for an s2idle patch, which will add a new non-ACPI sleep state (STYPE_SUSPEND_TO_IDLE).

Test Plan

All still works on the Framework 13 AMD Ryzen 7040 series, though I can not make sure that S3 sleep still works.

Diff Detail

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