1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Fix testing reboot howto flags in acpi_shutdown_final().

This sould make the system power-off correctly where the howto had
more bits set than RB_POWEROFF, e.g. RB_NOSYNC.

Submitted by:	Peter Pentchev <roam@orbitel.bg>
This commit is contained in:
Mitsuru IWASAKI 2000-12-19 15:45:11 +00:00
parent d8aa002e9c
commit 5f3e417548
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70194

View File

@ -657,7 +657,7 @@ acpi_shutdown_final(void *arg, int howto)
{
ACPI_STATUS status;
if (howto == RB_POWEROFF) {
if (howto & RB_POWEROFF) {
printf("Power system off using ACPI...\n");
if ((status = AcpiSetSystemSleepState(ACPI_STATE_S5)) != AE_OK) {
printf("ACPI power-off failed - %s\n", acpi_strerror(status));