Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
tools/memory-model/Documentation/recipes.txt
··· 1 1 This document provides "recipes", that is, litmus tests for commonly 2 2 occurring situations, as well as a few that illustrate subtly broken but 3 3 attractive nuisances. Many of these recipes include example code from 4 - v4.13 of the Linux kernel. 4 + v5.7 of the Linux kernel. 5 5 6 6 The first section covers simple special cases, the second section 7 7 takes off the training wheels to cover more involved examples, ··· 278 278 first place (control dependency). Note that the term "data dependency" 279 279 is sometimes casually used to cover both address and data dependencies. 280 280 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 282 282 rcu_assign_pointer(), and the next_prime_number() function invokes 283 283 rcu_dereference(). This combination mediates access to a bit vector 284 284 that is expanded as additional primes are needed.