Deleted Added
full compact
evmisc.c (104470) evmisc.c (107325)
1/******************************************************************************
2 *
3 * Module Name: evmisc - Miscellaneous event manager support functions
1/******************************************************************************
2 *
3 * Module Name: evmisc - Miscellaneous event manager support functions
4 * $Revision: 57 $
4 * $Revision: 59 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.

--- 313 unchanged lines hidden (view full) ---

326 AcpiUtDeleteGenericState (NotifyInfo);
327 }
328 }
329
330 if (!HandlerObj)
331 {
332 /* There is no per-device notify handler for this device */
333
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.

--- 313 unchanged lines hidden (view full) ---

326 AcpiUtDeleteGenericState (NotifyInfo);
327 }
328 }
329
330 if (!HandlerObj)
331 {
332 /* There is no per-device notify handler for this device */
333
334 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "No notify handler for node %p \n", Node));
334 ACPI_DEBUG_PRINT ((ACPI_DB_INFO,
335 "No notify handler for [%4.4s] node %p\n", Node->Name.Ascii, Node));
335 }
336
337 return (Status);
338}
339
340
341/*******************************************************************************
342 *

--- 199 unchanged lines hidden (view full) ---

542 * RETURN: Status
543 *
544 * DESCRIPTION: Attempt to gain ownership of the Global Lock.
545 *
546 *****************************************************************************/
547
548ACPI_STATUS
549AcpiEvAcquireGlobalLock (
336 }
337
338 return (Status);
339}
340
341
342/*******************************************************************************
343 *

--- 199 unchanged lines hidden (view full) ---

543 * RETURN: Status
544 *
545 * DESCRIPTION: Attempt to gain ownership of the Global Lock.
546 *
547 *****************************************************************************/
548
549ACPI_STATUS
550AcpiEvAcquireGlobalLock (
550 UINT32 Timeout)
551 UINT16 Timeout)
551{
552 ACPI_STATUS Status = AE_OK;
553 BOOLEAN Acquired = FALSE;
554
555
556 ACPI_FUNCTION_TRACE ("EvAcquireGlobalLock");
557
558

--- 19 unchanged lines hidden (view full) ---

578
579 /* We must acquire the actual hardware lock */
580
581 ACPI_ACQUIRE_GLOBAL_LOCK (AcpiGbl_CommonFACS.GlobalLock, Acquired);
582 if (Acquired)
583 {
584 /* We got the lock */
585
552{
553 ACPI_STATUS Status = AE_OK;
554 BOOLEAN Acquired = FALSE;
555
556
557 ACPI_FUNCTION_TRACE ("EvAcquireGlobalLock");
558
559

--- 19 unchanged lines hidden (view full) ---

579
580 /* We must acquire the actual hardware lock */
581
582 ACPI_ACQUIRE_GLOBAL_LOCK (AcpiGbl_CommonFACS.GlobalLock, Acquired);
583 if (Acquired)
584 {
585 /* We got the lock */
586
586 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Acquired the HW Global Lock\n"));
587 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Acquired the HW Global Lock\n"));
587
588 AcpiGbl_GlobalLockAcquired = TRUE;
589 return_ACPI_STATUS (AE_OK);
590 }
591
592 /*
593 * Did not get the lock. The pending bit was set above, and we must now
594 * wait until we get the global lock released interrupt.
595 */
588
589 AcpiGbl_GlobalLockAcquired = TRUE;
590 return_ACPI_STATUS (AE_OK);
591 }
592
593 /*
594 * Did not get the lock. The pending bit was set above, and we must now
595 * wait until we get the global lock released interrupt.
596 */
596 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "Waiting for the HW Global Lock\n"));
597 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Waiting for the HW Global Lock\n"));
597
598 /*
599 * Acquire the global lock semaphore first.
600 * Since this wait will block, we must release the interpreter
601 */
602 Status = AcpiExSystemWaitSemaphore (AcpiGbl_GlobalLockSemaphore,
603 Timeout);
604 return_ACPI_STATUS (Status);

--- 159 unchanged lines hidden ---
598
599 /*
600 * Acquire the global lock semaphore first.
601 * Since this wait will block, we must release the interpreter
602 */
603 Status = AcpiExSystemWaitSemaphore (AcpiGbl_GlobalLockSemaphore,
604 Timeout);
605 return_ACPI_STATUS (Status);

--- 159 unchanged lines hidden ---