diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-11 15:28:06 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-02-17 17:56:07 -0500 |
commit | 586dd56a4c17611e3927c9ff02ab8d0a6a545b38 (patch) | |
tree | 7efa91e04d699f89b736dd642eeb183ef0e92b9d /Documentation/memory-barriers.txt | |
parent | 449f7413c876a229fd95362cc12bc7ade18d0661 (diff) |
Documentation/memory-barriers.txt: Conditional must use prior load
A control dependency consists of a load, a conditional that depends on
that load, and a store. This commit emphasizes this point in the
summary.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'Documentation/memory-barriers.txt')
-rw-r--r-- | Documentation/memory-barriers.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt index f9ff060d8320..6b25efd45583 100644 --- a/Documentation/memory-barriers.txt +++ b/Documentation/memory-barriers.txt | |||
@@ -724,7 +724,8 @@ In summary: | |||
724 | later loads, smp_mb(). | 724 | later loads, smp_mb(). |
725 | 725 | ||
726 | (*) Control dependencies require at least one run-time conditional | 726 | (*) Control dependencies require at least one run-time conditional |
727 | between the prior load and the subsequent store. If the compiler | 727 | between the prior load and the subsequent store, and this |
728 | conditional must involve the prior load. If the compiler | ||
728 | is able to optimize the conditional away, it will have also | 729 | is able to optimize the conditional away, it will have also |
729 | optimized away the ordering. Careful use of ACCESS_ONCE() can | 730 | optimized away the ordering. Careful use of ACCESS_ONCE() can |
730 | help to preserve the needed conditional. | 731 | help to preserve the needed conditional. |