Skip to contentSkip to conversation

Documentation,barriers: Mention smp_cond_acquire()

PATCH Applied Davidlohr Bueso 2 participants 2 messages Mar 21, 2016 – Mar 23, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation,barriers: Mention smp_cond_acquire()

... do this next to smp_load_acquire when first mentioning ACQUIRE. While this call is briefly explained and ctrl dependencies are mentioned later, it does not hurt the reader.

---
 Documentation/memory-barriers.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/memory-barriers.txt +3 -2
index 3729cbe60e41..2b5ea9d01a8f 100644
@@ -430,8 +430,9 @@ And a couple of implicit varieties:
      This acts as a one-way permeable barrier.  It guarantees that all memory
      operations after the ACQUIRE operation will appear to happen after the
      ACQUIRE operation with respect to the other components of the system.
-     ACQUIRE operations include LOCK operations and smp_load_acquire()
-     operations.
+     ACQUIRE operations include LOCK operations and both smp_load_acquire()
+     and smp_cond_acquire() operations. The later builds the necessary ACQUIRE
+     semantics from relying on a control dependency and smp_rmb().
 
      Memory operations that occur before an ACQUIRE operation may appear to
      happen after it completes.
Signature · 1 line
2.1.4
#1 lore raw
Quoted 5 lines · Davidlohr Bueso

... do this next to smp_load_acquire when first mentioning ACQUIRE. While this call is briefly explained and ctrl dependencies are mentioned later, it does not hurt the reader.

Queued for review, thank you, Davidlohr!

Thanx, Paul

Quoted 23 lines
---
 Documentation/memory-barriers.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/memory-barriers.txt +3 -2
index 3729cbe60e41..2b5ea9d01a8f 100644
@@ -430,8 +430,9 @@ And a couple of implicit varieties:
      This acts as a one-way permeable barrier.  It guarantees that all memory
      operations after the ACQUIRE operation will appear to happen after the
      ACQUIRE operation with respect to the other components of the system.
-     ACQUIRE operations include LOCK operations and smp_load_acquire()
-     operations.
+     ACQUIRE operations include LOCK operations and both smp_load_acquire()
+     and smp_cond_acquire() operations. The later builds the necessary ACQUIRE
+     semantics from relying on a control dependency and smp_rmb().
 
      Memory operations that occur before an ACQUIRE operation may appear to
      happen after it completes.
Signature · 1 line
2.1.4