summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-10-19 05:56:59 +0000
committernjl <njl@FreeBSD.org>2003-10-19 05:56:59 +0000
commit432ff6a541ddcb39a424fba7a499bd02a8e2eb19 (patch)
tree6a10c8a18de2f76d156c5fc411740bb2b5106630 /sys/dev/acpica
parent7b3a8f1308890767d5506a021e706e78732e95d4 (diff)
downloadFreeBSD-src-432ff6a541ddcb39a424fba7a499bd02a8e2eb19.zip
FreeBSD-src-432ff6a541ddcb39a424fba7a499bd02a8e2eb19.tar.gz
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.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c1
1 files changed, 1 insertions, 0 deletions
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));
OpenPOWER on IntegriCloud