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.
This commit is contained in:
Nate Lawson 2003-10-19 05:56:59 +00:00
parent 68d86cf1e2
commit 5539804740
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121239

View File

@ -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));