acpi: AE_NOT_EXIST is quite common return value of AcpiReset()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Jun 2011 06:43:52 +0000 (14:43 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 14 Jun 2011 06:43:52 +0000 (14:43 +0800)
sys/dev/acpica5/acpi.c

index d7bbc71..fc9cb1f 100644 (file)
@@ -1744,7 +1744,8 @@ acpi_shutdown_final(void *arg, int howto)
        /* Reboot using the reset register. */
        status = AcpiReset();
        if (ACPI_FAILURE(status)) {
-           kprintf("ACPI reset failed - %s\n", AcpiFormatException(status));
+           if (status != AE_NOT_EXIST)
+                   kprintf("ACPI reset failed - %s\n", AcpiFormatException(status));
        } else {
            DELAY(1000000);
            kprintf("ACPI reset failed - timeout\n");