torture: Move rcutorture_sched_setaffinity() out of rcutorture
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 31 Jul 2023 20:10:34 +0000 (13:10 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Sun, 24 Sep 2023 15:24:01 +0000 (17:24 +0200)
commit0cfecd7d754f2ef5d7e6b56ee656a8544ade920a
tree3c0b84e364a217f02bac5bb9760e02649ebb2161
parent3853a720f8bce9c5facb593e817f97659cc0512a
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>
include/linux/torture.h
kernel/rcu/rcu.h
kernel/rcu/rcutorture.c
kernel/rcu/update.c