From: Bob Moore Date: Fri, 2 Feb 2007 16:48:21 +0000 (+0300) Subject: ACPICA: Fix for Global Lock semaphore. X-Git-Tag: v2.6.21-rc2~42^2~12^2^2~9^2~48 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=73ca0fbcc25a6080db4136f55dbcd5fe7b33398f;p=~shefty%2Frdma-dev.git ACPICA: Fix for Global Lock semaphore. Fixed a problem with the Global Lock where the lock could appear to be obtained before it is actually obtained, semaphore created with one unit. Signed-off-by: Alexey Starikovskiy Signed-off-by: Len Brown --- diff --git a/drivers/acpi/namespace/nsaccess.c b/drivers/acpi/namespace/nsaccess.c index b2ef6730be8..2529ae9f7ce 100644 --- a/drivers/acpi/namespace/nsaccess.c +++ b/drivers/acpi/namespace/nsaccess.c @@ -214,7 +214,7 @@ acpi_status acpi_ns_root_initialize(void) /* Create additional counting semaphore for global lock */ status = - acpi_os_create_semaphore(1, 1, + acpi_os_create_semaphore(1, 0, &acpi_gbl_global_lock_semaphore); if (ACPI_FAILURE(status)) { acpi_ut_remove_reference