diff options
author | Bob Moore <robert.moore@intel.com> | 2007-02-02 11:48:21 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-02 21:14:27 -0500 |
commit | d1fdda83f7c567f376ddd4305833de09f7919ca9 (patch) | |
tree | 059dccd5c38ad96a8f31bf8b45409460a02bd41f /drivers/acpi/dispatcher | |
parent | 9bc75cff4919f9d947982d805aed89582a20d04d (diff) |
ACPICA: Fix race condition with AcpiWalkNamespace.
Fixed a problem with a possible race condition between threads executing
AcpiWalkNamespace and the AML interpreter. This condition was removed by
modifying AcpiWalkNamespace to (by default) ignore all temporary
namespace entries created during any concurrent control method execution
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dispatcher')
-rw-r--r-- | drivers/acpi/dispatcher/dswload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/dispatcher/dswload.c b/drivers/acpi/dispatcher/dswload.c index 565d4557d0e0..4ed08680ae7c 100644 --- a/drivers/acpi/dispatcher/dswload.c +++ b/drivers/acpi/dispatcher/dswload.c | |||
@@ -756,9 +756,9 @@ acpi_ds_load2_begin_op(struct acpi_walk_state *walk_state, | |||
756 | flags = ACPI_NS_NO_UPSEARCH; | 756 | flags = ACPI_NS_NO_UPSEARCH; |
757 | if (walk_state->pass_number == 3) { | 757 | if (walk_state->pass_number == 3) { |
758 | 758 | ||
759 | /* Execution mode, node cannot already exist */ | 759 | /* Execution mode, node cannot already exist, node is temporary */ |
760 | 760 | ||
761 | flags |= ACPI_NS_ERROR_IF_FOUND; | 761 | flags |= (ACPI_NS_ERROR_IF_FOUND | ACPI_NS_TEMPORARY); |
762 | } | 762 | } |
763 | 763 | ||
764 | /* Add new entry or lookup existing entry */ | 764 | /* Add new entry or lookup existing entry */ |