Page MenuHomeFreeBSD

acpi: Fix setting sleep state sysctls to NONE
ClosedPublic

Authored by obiwac on Nov 25 2025, 9:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 20, 10:22 AM
Unknown Object (File)
Sun, Apr 19, 3:32 PM
Unknown Object (File)
Wed, Apr 15, 7:34 AM
Unknown Object (File)
Sun, Apr 12, 4:49 PM
Unknown Object (File)
Tue, Apr 7, 4:15 AM
Unknown Object (File)
Sat, Apr 4, 2:04 PM
Unknown Object (File)
Mar 21 2026, 4:25 PM
Unknown Object (File)
Mar 20 2026, 11:45 PM
Subscribers

Details

Summary

This restores the functionality as it was pre-97d152698f48.

A stopgap was committed by glebius@ in 34dfccc64f47 ("acpi: in
acpi_stype_sysctl() use same logic as in acpi_sleep_state_sysctl()").

PR: 290651
Fixes: 97d152698f48 ("acpi: Use sleep types defined in sys/power.h")

Sponsored by: The FreeBSD Foundation

(I have fixed some typos in here too, which I'll commit separately.)

Diff Detail

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

Event Timeline

obiwac edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Nov 26 2025, 10:06 AM
sys/dev/acpica/acpi.c
4587–4588

this is just for clarity?

4696–4698

IMO using braces on both sides of else (if one side needs them) is a small clarity improvement

sys/dev/acpica/acpi.c
4587–4588

yeah, it was a bit weird to check this after checking if the first character was an S

This revision was automatically updated to reflect the committed changes.