/drivers/devman/acpica/parser/psargs.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/psloop.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
767,7 → 767,7 |
MethodObj->Method.AmlStart = AmlStart; |
MethodObj->Method.AmlLength = AmlLength; |
MethodObj->Method.OwnerId = OwnerId; |
MethodObj->Method.Flags |= AOPOBJ_MODULE_LEVEL; |
MethodObj->Method.InfoFlags |= ACPI_METHOD_MODULE_LEVEL; |
/* |
* Save the parent node in NextObject. This is cheating, but we |
/drivers/devman/acpica/parser/psopcode.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/psparse.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
128,7 → 128,6 |
#include "acparser.h" |
#include "acdispat.h" |
#include "amlcode.h" |
#include "acnamesp.h" |
#include "acinterp.h" |
#define _COMPONENT ACPI_PARSER |
635,23 → 634,16 |
/* Check for possible multi-thread reentrancy problem */ |
if ((Status == AE_ALREADY_EXISTS) && |
(!WalkState->MethodDesc->Method.Mutex)) |
(!(WalkState->MethodDesc->Method.InfoFlags & ACPI_METHOD_SERIALIZED))) |
{ |
ACPI_INFO ((AE_INFO, |
"Marking method %4.4s as Serialized because of AE_ALREADY_EXISTS error", |
WalkState->MethodNode->Name.Ascii)); |
/* |
* Method tried to create an object twice. The probable cause is |
* that the method cannot handle reentrancy. |
* |
* The method is marked NotSerialized, but it tried to create |
* a named object, causing the second thread entrance to fail. |
* Workaround this problem by marking the method permanently |
* as Serialized. |
* Method is not serialized and tried to create an object |
* twice. The probable cause is that the method cannot |
* handle reentrancy. Mark as "pending serialized" now, and |
* then mark "serialized" when the last thread exits. |
*/ |
WalkState->MethodDesc->Method.MethodFlags |= AML_METHOD_SERIALIZED; |
WalkState->MethodDesc->Method.SyncLevel = 0; |
WalkState->MethodDesc->Method.InfoFlags |= |
ACPI_METHOD_SERIALIZED_PENDING; |
} |
} |
/drivers/devman/acpica/parser/psscope.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/pstree.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/psutils.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/pswalk.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
/drivers/devman/acpica/parser/psxface.c |
---|
8,7 → 8,7 |
* |
* 1. Copyright Notice |
* |
* Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
* Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
* All rights reserved. |
* |
* 2. License |
121,7 → 121,6 |
#include "acdispat.h" |
#include "acinterp.h" |
#include "actables.h" |
#include "amlcode.h" |
#define _COMPONENT ACPI_PARSER |
399,7 → 398,7 |
goto Cleanup; |
} |
if (Info->ObjDesc->Method.Flags & AOPOBJ_MODULE_LEVEL) |
if (Info->ObjDesc->Method.InfoFlags & ACPI_METHOD_MODULE_LEVEL) |
{ |
WalkState->ParseFlags |= ACPI_PARSE_MODULE_LEVEL; |
} |
406,9 → 405,9 |
/* Invoke an internal method if necessary */ |
if (Info->ObjDesc->Method.MethodFlags & AML_METHOD_INTERNAL_ONLY) |
if (Info->ObjDesc->Method.InfoFlags & ACPI_METHOD_INTERNAL_ONLY) |
{ |
Status = Info->ObjDesc->Method.Extra.Implementation (WalkState); |
Status = Info->ObjDesc->Method.Dispatch.Implementation (WalkState); |
Info->ReturnObject = WalkState->ReturnDesc; |
/* Cleanup states */ |