]> err.no Git - linux-2.6/blobdiff - Documentation/memory-barriers.txt
[ARM] Merge individual ARM sub-trees
[linux-2.6] / Documentation / memory-barriers.txt
index 994355b0cd19087654d8cab690597944ed633a0a..7751704b6db1418e6eb3ecb7a273b34730f66fac 100644 (file)
@@ -1016,7 +1016,7 @@ There are some more advanced barrier functions:
 
  (*) set_mb(var, value)
 
-     This assigns the value to the variable and then inserts at least a write
+     This assigns the value to the variable and then inserts a full memory
      barrier after it, depending on the function.  It isn't guaranteed to
      insert anything more than a compiler barrier in a UP compilation.
 
@@ -1898,7 +1898,7 @@ queue before processing any further requests:
        smp_wmb();
        <A:modify v=2>  <C:busy>
                        <C:queue v=2>
-       p = &b;         q = p;
+       p = &v;         q = p;
                        <D:request p>
        <B:modify p=&v> <D:commit p=&v>
                        <D:read p>