aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-06-01 18:18:48 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-06-01 18:18:48 +0000
commit108705d043f734b681ddd450d2afd2050bea3bc8 (patch)
tree2558aff556e89b90b6f3d673cd6ac9fe3e1aa678
parentffc06c80d8bb8c15f96ba412c2624d5132836377 (diff)
downloadsrc-108705d043f734b681ddd450d2afd2050bea3bc8.tar.gz
src-108705d043f734b681ddd450d2afd2050bea3bc8.zip
Call AcpiSetFirmwareWakingVector() with interrupt disabled for consistency.
Notes
Notes: svn path=/head/; revision=236414
-rw-r--r--sys/amd64/acpica/acpi_wakeup.c4
-rw-r--r--sys/i386/acpica/acpi_wakeup.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c
index 2cd8bc74e058..3e869250cc6b 100644
--- a/sys/amd64/acpica/acpi_wakeup.c
+++ b/sys/amd64/acpica/acpi_wakeup.c
@@ -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);
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c
index 2c07003b59ac..488226f35cb0 100644
--- a/sys/i386/acpica/acpi_wakeup.c
+++ b/sys/i386/acpica/acpi_wakeup.c
@@ -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);