1/******************************************************************************
2 *
3 * Module Name: evxface - External interfaces for ACPI events
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.
--- 266 unchanged lines hidden (view full) ---
275 /* Parameter validation */
276
277 if ((!Device) || (!Handler) || (!HandlerType) ||
278 (HandlerType > ACPI_MAX_NOTIFY_HANDLER_TYPE))
279 {
280 return_ACPI_STATUS (AE_BAD_PARAMETER);
281 }
282
283#ifdef _UNDER_DEVELOPMENT
284 /* Make sure all deferred tasks are completed */
285
286 AcpiOsWaitEventsComplete (NULL);
287#endif
288
289 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
290 if (ACPI_FAILURE (Status))
291 {
292 return_ACPI_STATUS (Status);
293 }
294
295 /* Root Object. Global handlers are removed here */
--- 501 unchanged lines hidden (view full) ---
797
798 /* Parameter validation */
799
800 if (!Address)
801 {
802 return_ACPI_STATUS (AE_BAD_PARAMETER);
803 }
804
805 Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS);
806 if (ACPI_FAILURE (Status))
807 {
808 return_ACPI_STATUS (Status);
809 }
810
811 Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock);
812
--- 147 unchanged lines hidden ---
2 *
3 * Module Name: evxface - External interfaces for ACPI events
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.
--- 266 unchanged lines hidden (view full) ---
275 /* Parameter validation */
276
277 if ((!Device) || (!Handler) || (!HandlerType) ||
278 (HandlerType > ACPI_MAX_NOTIFY_HANDLER_TYPE))
279 {
280 return_ACPI_STATUS (AE_BAD_PARAMETER);
281 }
282
283#ifdef _UNDER_DEVELOPMENT
284 /* Make sure all deferred tasks are completed */
285
286 AcpiOsWaitEventsComplete (NULL);
287#endif
288
289 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
290 if (ACPI_FAILURE (Status))
291 {
292 return_ACPI_STATUS (Status);
293 }
294
295 /* Root Object. Global handlers are removed here */
--- 501 unchanged lines hidden (view full) ---
797
798 /* Parameter validation */
799
800 if (!Address)
801 {
802 return_ACPI_STATUS (AE_BAD_PARAMETER);
803 }
804
805 Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS);
806 if (ACPI_FAILURE (Status))
807 {
808 return_ACPI_STATUS (Status);
809 }
810
811 Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock);
812
--- 147 unchanged lines hidden ---