Page MenuHomeFreeBSD

acpi: Factor out the power off code into acpi_poweroff()
ClosedPublic

Authored by olce on Tue, Feb 10, 4:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 28, 6:46 PM
Unknown Object (File)
Mon, Feb 16, 9:23 PM
Unknown Object (File)
Mon, Feb 16, 1:45 PM
Unknown Object (File)
Mon, Feb 16, 1:45 PM
Unknown Object (File)
Wed, Feb 11, 8:47 AM
Unknown Object (File)
Wed, Feb 11, 7:17 AM
Unknown Object (File)
Wed, Feb 11, 2:00 AM
Unknown Object (File)
Wed, Feb 11, 1:14 AM
Subscribers

Details

Summary

While here, make it print that we are trying to power off upfront, not
really treating differently power off preparation via
acpi_EnterSleepStatePrep() and actual power off via
AcpiEnterSleepState(), which the user does not care about.

While here, capitalize the messages.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Tue, Feb 10, 4:59 PM

nit: acpi_poweroff generally has kind of a mix of styles. It would be good to have just tabs to completely match FreeBSD style.

tested, all works. just style to improve but can be done on commit/later

This revision is now accepted and ready to land.Wed, Feb 18, 2:27 AM

Oh, that was unintended. Already fixed it locally but forgot to update the diff here.