Skip to content

Commit 366b88f

Browse files
akiykspaulmckrcu
authored andcommitted
tools/memory-model: docs/simple.txt: Fix trivial typos
Signed-off-by: Akira Yokosawa <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Acked-by: Andrea Parri <[email protected]>
1 parent 13a9a11 commit 366b88f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/memory-model/Documentation/simple.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Packaged primitives: Sequence locking
134134
Lockless programming is considered by many to be more difficult than
135135
lock-based programming, but there are a few lockless design patterns that
136136
have been built out into an API. One of these APIs is sequence locking.
137-
Although this APIs can be used in extremely complex ways, there are simple
137+
Although this API can be used in extremely complex ways, there are simple
138138
and effective ways of using it that avoid the need to pay attention to
139139
memory ordering.
140140

@@ -205,7 +205,7 @@ If you want to keep things simple, use the initialization and read-out
205205
operations from the previous section only when there are no racing
206206
accesses. Otherwise, use only fully ordered operations when accessing
207207
or modifying the variable. This approach guarantees that code prior
208-
to a given access to that variable will be seen by all CPUs has having
208+
to a given access to that variable will be seen by all CPUs as having
209209
happened before any code following any later access to that same variable.
210210

211211
Please note that per-CPU functions are not atomic operations and

0 commit comments

Comments
 (0)