From 432ff6a541ddcb39a424fba7a499bd02a8e2eb19 Mon Sep 17 00:00:00 2001 From: njl Date: Sun, 19 Oct 2003 05:56:59 +0000 Subject: Disable irqs before entering the power-off state. This is not known to fix any problems but is similar to how Linux implements this function. --- sys/dev/acpica/acpi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/acpica') diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index c1e1f752..43dca2a 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1010,6 +1010,7 @@ acpi_shutdown_final(void *arg, int howto) AcpiFormatException(status)); return; } + ACPI_DISABLE_IRQS(); status = AcpiEnterSleepState(acpi_off_state); if (ACPI_FAILURE(status)) { printf("ACPI power-off failed - %s\n", AcpiFormatException(status)); -- cgit v1.1