From 05f209708307d47bb040cae2473a7905c73b32cf Mon Sep 17 00:00:00 2001 From: iwasaki Date: Tue, 19 Dec 2000 15:45:11 +0000 Subject: 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 --- sys/dev/acpica/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/acpica') 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)); -- cgit v1.1