Skip to content

Commit

Permalink
Call AcpiSetFirmwareWakingVector() with interrupt disabled for consis…
Browse files Browse the repository at this point in the history
…tency.
  • Loading branch information
juikim committed Jun 1, 2012
1 parent ffc06c8 commit 108705d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sys/amd64/acpica/acpi_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ acpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result,
#endif
mca_resume();
intr_resume();

AcpiSetFirmwareWakingVector(0);
} else {
/* Wakeup MD procedures in interrupt enabled context */
AcpiSetFirmwareWakingVector(0);

if (sleep_result == 1 && mem_range_softc.mr_op != NULL &&
mem_range_softc.mr_op->reinit != NULL)
mem_range_softc.mr_op->reinit(&mem_range_softc);
Expand Down
4 changes: 2 additions & 2 deletions sys/i386/acpica/acpi_wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ acpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result,
#endif
mca_resume();
intr_resume();

AcpiSetFirmwareWakingVector(0);
} else {
/* Wakeup MD procedures in interrupt enabled context */
AcpiSetFirmwareWakingVector(0);

if (sleep_result == 1 && mem_range_softc.mr_op != NULL &&
mem_range_softc.mr_op->reinit != NULL)
mem_range_softc.mr_op->reinit(&mem_range_softc);
Expand Down

0 comments on commit 108705d

Please sign in to comment.