Page MenuHomeFreeBSD

acpi: Fix setting sleep state sysctls to NONE
ClosedPublic

Authored by obiwac on Tue, Nov 25, 9:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 20, 2:36 AM
Unknown Object (File)
Fri, Dec 19, 9:39 AM
Unknown Object (File)
Fri, Dec 19, 8:07 AM
Unknown Object (File)
Mon, Dec 15, 11:39 AM
Unknown Object (File)
Sun, Dec 14, 12:44 PM
Unknown Object (File)
Mon, Dec 8, 8:09 AM
Unknown Object (File)
Mon, Dec 1, 4:41 PM
Unknown Object (File)
Sun, Nov 30, 10:26 AM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

this is just for clarity?

4430–4447

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

sys/dev/acpica/acpi.c
4321–4322

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.