Don't disable interrupts a second time. Remove an extraneous interrupt

enable (that happens elsewhere).  Clarify the interrupt disabling point
by using ACPI_DISABLE_IRQS().

Tested by:	Kevin Oberman
This commit is contained in:
njl 2003-09-08 06:22:54 +00:00
parent 81a5dc108d
commit 6e452678be

View File

@ -199,7 +199,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
AcpiSetFirmwareWakingVector(sc->acpi_wakephys);
ef = read_eflags();
disable_intr();
ACPI_DISABLE_IRQS();
/* Create Identity Mapping */
if ((p = curproc) == NULL)
@ -254,13 +254,10 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
acpi_printcpu();
/* Call ACPICA to enter the desired sleep state */
ACPI_DISABLE_IRQS();
ACPI_FLUSH_CPU_CACHE();
if (state == ACPI_STATE_S4 && sc->acpi_s4bios)
status = AcpiEnterSleepStateS4bios();
else
status = AcpiEnterSleepState(state);
ACPI_ENABLE_IRQS();
if (status != AE_OK) {
device_printf(sc->acpi_dev,