]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Documentation: Fix memory-barriers.txt example
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 3 Oct 2012 17:28:30 +0000 (10:28 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 23 Oct 2012 21:44:46 +0000 (14:44 -0700)
This commit fixes a broken example of overlapping stores in the
Documentation/memory-barriers.txt file.

Reported-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/memory-barriers.txt

index 2759f7c188f0cd9232ce10122d3dd6595b4f0d30..3c4e1b3b80a1f8036a8b220ddcd0210d167c62b6 100644 (file)
@@ -251,12 +251,13 @@ And there are a number of things that _must_ or _must_not_ be assumed:
 
      And for:
 
-       *A = X; Y = *A;
+       *A = X; *(A + 4) = Y;
 
-     we may get either of:
+     we may get any of:
 
-       STORE *A = X; Y = LOAD *A;
-       STORE *A = Y = X;
+       STORE *A = X; STORE *(A + 4) = Y;
+       STORE *(A + 4) = Y; STORE *A = X;
+       STORE {*A, *(A + 4) } = {X, Y};
 
 
 =========================