diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2023-07-31 23:10:34 +0300 |
---|---|---|
committer | Frederic Weisbecker <frederic@kernel.org> | 2023-09-24 18:24:01 +0300 |
commit | 0cfecd7d754f2ef5d7e6b56ee656a8544ade920a (patch) | |
tree | 3c0b84e364a217f02bac5bb9760e02649ebb2161 /kernel/rcu/rcutorture.c | |
parent | 3853a720f8bce9c5facb593e817f97659cc0512a (diff) | |
download | linux-0cfecd7d754f2ef5d7e6b56ee656a8544ade920a.tar.xz |
torture: Move rcutorture_sched_setaffinity() out of rcutorture
The rcutorture_sched_setaffinity() function is needed by locktorture,
so move its declaration from rcu.h to torture.h and rename it to the
more generic torture_sched_setaffinity() name.
Please note that use of this function is still restricted to torture
tests, and of those, currently only rcutorture and locktorture.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'kernel/rcu/rcutorture.c')
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index ade42d6a9d9b..7e82fb887d09 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -810,7 +810,7 @@ static void synchronize_rcu_trivial(void) int cpu; for_each_online_cpu(cpu) { - rcutorture_sched_setaffinity(current->pid, cpumask_of(cpu)); + torture_sched_setaffinity(current->pid, cpumask_of(cpu)); WARN_ON_ONCE(raw_smp_processor_id() != cpu); } } |