diff options
Diffstat (limited to 'drivers/acpi/acpica/nsdump.c')
| -rw-r--r-- | drivers/acpi/acpica/nsdump.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index a54dc39e304b..b683cc2ff9d3 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2010, Intel Corp. | 8 | * Copyright (C) 2000 - 2011, Intel Corp. |
| 9 | * All rights reserved. | 9 | * All rights reserved. |
| 10 | * | 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
| @@ -624,9 +624,22 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
| 624 | acpi_owner_id owner_id, acpi_handle start_handle) | 624 | acpi_owner_id owner_id, acpi_handle start_handle) |
| 625 | { | 625 | { |
| 626 | struct acpi_walk_info info; | 626 | struct acpi_walk_info info; |
| 627 | acpi_status status; | ||
| 627 | 628 | ||
| 628 | ACPI_FUNCTION_ENTRY(); | 629 | ACPI_FUNCTION_ENTRY(); |
| 629 | 630 | ||
| 631 | /* | ||
| 632 | * Just lock the entire namespace for the duration of the dump. | ||
| 633 | * We don't want any changes to the namespace during this time, | ||
| 634 | * especially the temporary nodes since we are going to display | ||
| 635 | * them also. | ||
| 636 | */ | ||
| 637 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | ||
| 638 | if (ACPI_FAILURE(status)) { | ||
| 639 | acpi_os_printf("Could not acquire namespace mutex\n"); | ||
| 640 | return; | ||
| 641 | } | ||
| 642 | |||
| 630 | info.debug_level = ACPI_LV_TABLES; | 643 | info.debug_level = ACPI_LV_TABLES; |
| 631 | info.owner_id = owner_id; | 644 | info.owner_id = owner_id; |
| 632 | info.display_type = display_type; | 645 | info.display_type = display_type; |
| @@ -636,6 +649,8 @@ acpi_ns_dump_objects(acpi_object_type type, | |||
| 636 | ACPI_NS_WALK_TEMP_NODES, | 649 | ACPI_NS_WALK_TEMP_NODES, |
| 637 | acpi_ns_dump_one_object, NULL, | 650 | acpi_ns_dump_one_object, NULL, |
| 638 | (void *)&info, NULL); | 651 | (void *)&info, NULL); |
| 652 | |||
| 653 | (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | ||
| 639 | } | 654 | } |
| 640 | #endif /* ACPI_FUTURE_USAGE */ | 655 | #endif /* ACPI_FUTURE_USAGE */ |
| 641 | 656 | ||
