Rev 1498 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 339... | Line 339... | ||
339 | * A method is creating a new node that is not a child of the |
339 | * A method is creating a new node that is not a child of the |
340 | * method (it is non-local). Mark the executing method as having |
340 | * method (it is non-local). Mark the executing method as having |
341 | * modified the namespace. This is used for cleanup when the |
341 | * modified the namespace. This is used for cleanup when the |
342 | * method exits. |
342 | * method exits. |
343 | */ |
343 | */ |
344 | WalkState->MethodDesc->Method.Flags |= AOPOBJ_MODIFIED_NAMESPACE; |
344 | WalkState->MethodDesc->Method.InfoFlags |= ACPI_METHOD_MODIFIED_NAMESPACE; |
345 | } |
345 | } |
346 | } |
346 | } |
Line 347... | Line 347... | ||
347 | 347 | ||
Line 457... | Line 457... | ||
457 | AcpiNsDeleteNamespaceSubtree ( |
457 | AcpiNsDeleteNamespaceSubtree ( |
458 | ACPI_NAMESPACE_NODE *ParentNode) |
458 | ACPI_NAMESPACE_NODE *ParentNode) |
459 | { |
459 | { |
460 | ACPI_NAMESPACE_NODE *ChildNode = NULL; |
460 | ACPI_NAMESPACE_NODE *ChildNode = NULL; |
461 | UINT32 Level = 1; |
461 | UINT32 Level = 1; |
- | 462 | ACPI_STATUS Status; |
|
Line 462... | Line 463... | ||
462 | 463 | ||
Line 463... | Line 464... | ||
463 | 464 | ||
464 | ACPI_FUNCTION_TRACE (NsDeleteNamespaceSubtree); |
465 | ACPI_FUNCTION_TRACE (NsDeleteNamespaceSubtree); |
465 | 466 | ||
466 | 467 | ||
Line -... | Line 468... | ||
- | 468 | if (!ParentNode) |
|
- | 469 | { |
|
- | 470 | return_VOID; |
|
- | 471 | } |
|
- | 472 | ||
- | 473 | /* Lock namespace for possible update */ |
|
- | 474 | ||
- | 475 | Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE); |
|
467 | if (!ParentNode) |
476 | if (ACPI_FAILURE (Status)) |
468 | { |
477 | { |
469 | return_VOID; |
478 | return_VOID; |
470 | } |
479 | } |
471 | 480 | ||
Line 519... | Line 528... | ||
519 | 528 | ||
520 | ParentNode = ParentNode->Parent; |
529 | ParentNode = ParentNode->Parent; |
521 | } |
530 | } |
Line -... | Line 531... | ||
- | 531 | } |
|
522 | } |
532 | |
523 | 533 | (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE); |
|
Line 524... | Line 534... | ||
524 | return_VOID; |
534 | return_VOID; |