patch-2.3.99-pre6 linux/arch/ia64/kernel/semaphore.c
Next file: linux/arch/ia64/kernel/setup.c
Previous file: linux/arch/ia64/kernel/sal_stub.S
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Fri Apr 21 15:21:24 2000
-  Orig file: 
v2.3.99-pre5/linux/arch/ia64/kernel/semaphore.c
-  Orig date: 
Fri Mar 10 16:40:39 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/arch/ia64/kernel/semaphore.c linux/arch/ia64/kernel/semaphore.c
@@ -310,7 +310,7 @@
 		do {
 			old_count = sem->count;
 			count = old_count - RW_LOCK_BIAS;
-		} while (cmpxchg(&sem->count, old_count, count) != old_count);
+		} while (cmpxchg_acq(&sem->count, old_count, count) != old_count);
 
 		if (count == 0)
 			return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)