patch-2.3.99-pre6 linux/include/asm-ia64/bitops.h

Next file: linux/include/asm-ia64/cache.h
Previous file: linux/include/asm-ia64/atomic.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ia64/bitops.h linux/include/asm-ia64/bitops.h
@@ -33,7 +33,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old | bit;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 }
 
 extern __inline__ void
@@ -49,7 +49,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old & mask;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 }
 
 extern __inline__ void
@@ -65,7 +65,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old ^ bit;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 }
 
 extern __inline__ int
@@ -81,7 +81,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old | bit;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 	return (old & bit) != 0;
 }
 
@@ -98,7 +98,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old & mask;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 	return (old & ~mask) != 0;
 }
 
@@ -115,7 +115,7 @@
 		CMPXCHG_BUGCHECK(m);
 		old = *m;
 		new = old ^ bit;
-	} while (cmpxchg(m, old, new) != old);
+	} while (cmpxchg_acq(m, old, new) != old);
 	return (old & bit) != 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)