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 /* Make sure all deferred notify tasks are completed */ |
284 |
285 AcpiOsWaitEventsComplete (); |
286 287 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); 288 if (ACPI_FAILURE (Status)) 289 { 290 return_ACPI_STATUS (Status); 291 } 292 293 /* Root Object. Global handlers are removed here */ --- 501 unchanged lines hidden (view full) --- 795 796 /* Parameter validation */ 797 798 if (!Address) 799 { 800 return_ACPI_STATUS (AE_BAD_PARAMETER); 801 } 802 |
803 /* Make sure all deferred GPE tasks are completed */ 804 805 AcpiOsWaitEventsComplete (); 806 |
807 Status = AcpiUtAcquireMutex (ACPI_MTX_EVENTS); 808 if (ACPI_FAILURE (Status)) 809 { 810 return_ACPI_STATUS (Status); 811 } 812 813 Flags = AcpiOsAcquireLock (AcpiGbl_GpeLock); 814 --- 147 unchanged lines hidden --- |