summaryrefslogtreecommitdiffstats
path: root/Documentation/memory-barriers.txt
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-05-18 18:27:42 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-07-15 14:43:11 -0700
commit57aecae950c55ef50934640794160cd118e73256 (patch)
tree22d4ab240a4428939983bb885bc48717c6600687 /Documentation/memory-barriers.txt
parent297f739938908a4262603314576e32ee7375296c (diff)
downloadop-kernel-dev-57aecae950c55ef50934640794160cd118e73256.zip
op-kernel-dev-57aecae950c55ef50934640794160cd118e73256.tar.gz
documentation: Fix variable-name typo in memory-barriers.txt
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'Documentation/memory-barriers.txt')
-rw-r--r--Documentation/memory-barriers.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt
index 13feb69..3d06f98 100644
--- a/Documentation/memory-barriers.txt
+++ b/Documentation/memory-barriers.txt
@@ -746,7 +746,7 @@ You must also be careful not to rely too much on boolean short-circuit
evaluation. Consider this example:
q = READ_ONCE_CTRL(a);
- if (a || 1 > 0)
+ if (q || 1 > 0)
ACCESS_ONCE(b) = 1;
Because the first condition cannot fault and the second condition is
OpenPOWER on IntegriCloud