torture: Replace deprecated CPU-hotplug functions.

The functions get_online_cpus() and put_online_cpus() have been
deprecated during the CPU hotplug rework. They map directly to
cpus_read_lock() and cpus_read_unlock().

Replace deprecated CPU-hotplug functions with the official version.
The behavior remains unchanged.

Cc: Davidlohr Bueso <>
Cc: "Paul E. McKenney" <>
Cc: Josh Triplett <>
Signed-off-by: Sebastian Andrzej Siewior <>
Signed-off-by: Paul E. McKenney <>
1 file changed