mirror of
https://github.com/acpica/acpica/
synced 2025-03-01 11:54:18 +03:00
Global lock is now optional
date 2001.03.02.17.45.00; author rmoore1; state Exp;
This commit is contained in:
parent
27f80cbb39
commit
23c2d07707
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: amutils - interpreter/scanner utilities
|
||||
* $Revision: 1.69 $
|
||||
* $Revision: 1.71 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -128,7 +128,6 @@
|
||||
MODULE_NAME ("amutils")
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiAmlEnterInterpreter
|
||||
@ -277,19 +276,21 @@ AcpiAmlAcquireGlobalLock (
|
||||
FUNCTION_TRACE ("AmlAcquireGlobalLock");
|
||||
|
||||
|
||||
/* Only attempt lock if the Rule says so */
|
||||
/* Only attempt lock if the Rule says so */
|
||||
|
||||
if (Rule == (UINT32) GLOCK_ALWAYS_LOCK)
|
||||
{
|
||||
/* OK to get the lock */
|
||||
/* We should attempt to get the lock */
|
||||
|
||||
Status = AcpiEvAcquireGlobalLock ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
DEBUG_PRINT (ACPI_ERROR, ("Get Global Lock Failed!!\n"));
|
||||
DEBUG_PRINT (ACPI_ERROR,
|
||||
("Could not acquire Global Lock, %s\n",
|
||||
AcpiCmFormatException (Status)));
|
||||
}
|
||||
|
||||
if (ACPI_SUCCESS (Status))
|
||||
else
|
||||
{
|
||||
AcpiGbl_GlobalLockSet = TRUE;
|
||||
Locked = TRUE;
|
||||
@ -490,7 +491,3 @@ AcpiAmlUnsignedIntegerToString (
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user