diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2000-12-19 15:45:11 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2000-12-19 15:45:11 +0000 |
commit | 05f209708307d47bb040cae2473a7905c73b32cf (patch) | |
tree | 222af9d3ad9e6389f313f2ff44e053aedeab7c4b /sys/dev/acpica | |
parent | 979699b8a92bba7db6f8a16646d3471118ac722c (diff) | |
download | FreeBSD-src-05f209708307d47bb040cae2473a7905c73b32cf.zip FreeBSD-src-05f209708307d47bb040cae2473a7905c73b32cf.tar.gz |
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>
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 5eb9d60..705d7e0 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -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)); |