doc: Fix memory-barrier control-dependency example
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 2 Jul 2013 22:24:09 +0000 (15:24 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 20 Aug 2013 04:39:42 +0000 (21:39 -0700)
commit45c8a36a5519960638a4f331839bb99c1994fd04
tree58ddb29830df06a0a87524f4514c299bb22988c7
parent6ae3771850910018c89b4ce063c52008bf2c8d6a
doc: Fix memory-barrier control-dependency example

Each control-dependency example needs its barriers between the "if"
condition and the body of the "if" because a control dependency is
a dependency induced by a branch.  This commit makes the needed
adjustment.

Reported-by: Yongming Shen <symingz@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Documentation/memory-barriers.txt