1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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:
Nate Lawson 2003-09-08 06:22:54 +00:00
parent 03be99d20c
commit bf10d4f8c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119873

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,