]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Fix for Global Lock semaphore.
authorBob Moore <robert.moore@intel.com>
Fri, 2 Feb 2007 16:48:21 +0000 (19:48 +0300)
committerLen Brown <len.brown@intel.com>
Sat, 3 Feb 2007 02:14:26 +0000 (21:14 -0500)
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 <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/namespace/nsaccess.c

index b2ef6730be81a19bdb66a92273f52762d4796649..2529ae9f7cef0e516b4a7b279836c9778a39064e 100644 (file)
@@ -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