aboutsummaryrefslogtreecommitdiffstats
path: root/source/components/events/evxface.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/components/events/evxface.c')
-rw-r--r--source/components/events/evxface.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/components/events/evxface.c b/source/components/events/evxface.c
index 1b709a5787eb..334e2418ba19 100644
--- a/source/components/events/evxface.c
+++ b/source/components/events/evxface.c
@@ -280,11 +280,9 @@ AcpiRemoveNotifyHandler (
return_ACPI_STATUS (AE_BAD_PARAMETER);
}
-#ifdef _UNDER_DEVELOPMENT
- /* Make sure all deferred tasks are completed */
+ /* Make sure all deferred notify tasks are completed */
- AcpiOsWaitEventsComplete (NULL);
-#endif
+ AcpiOsWaitEventsComplete ();
Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
if (ACPI_FAILURE (Status))
@@ -802,6 +800,10 @@ AcpiRemoveGpeHandler (
return_ACPI_STATUS (AE_BAD_PARAMETER);
}
+ /* Make sure all deferred GPE tasks are completed */
+
+ AcpiOsWaitEventsComplete ();
+
Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS);
if (ACPI_FAILURE (Status))
{