Skip to content

Commit cc9628b

Browse files
committed
tools/memory-model: Update recipes.txt prime_numbers.c path
The expand_to_next_prime() and next_prime_number() functions have moved from lib/prime_numbers.c to lib/math/prime_numbers.c, so this commit updates recipes.txt to reflect this change. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 1e44e6e commit cc9628b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/memory-model/Documentation/recipes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This document provides "recipes", that is, litmus tests for commonly
22
occurring situations, as well as a few that illustrate subtly broken but
33
attractive nuisances. Many of these recipes include example code from
4-
v4.13 of the Linux kernel.
4+
v5.7 of the Linux kernel.
55

66
The first section covers simple special cases, the second section
77
takes off the training wheels to cover more involved examples,
@@ -278,7 +278,7 @@ is present if the value loaded determines the address of a later access
278278
first place (control dependency). Note that the term "data dependency"
279279
is sometimes casually used to cover both address and data dependencies.
280280

281-
In lib/prime_numbers.c, the expand_to_next_prime() function invokes
281+
In lib/math/prime_numbers.c, the expand_to_next_prime() function invokes
282282
rcu_assign_pointer(), and the next_prime_number() function invokes
283283
rcu_dereference(). This combination mediates access to a bit vector
284284
that is expanded as additional primes are needed.

0 commit comments

Comments
 (0)