Skip to content

Commit d01a9f7

Browse files
Sebastian Andrzej Siewiorherbertx
authored andcommitted
crypto: virtio - 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: Gonglei <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: Jason Wang <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent c391714 commit d01a9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/virtio/virtio_crypto_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ static int virtcrypto_init_vqs(struct virtio_crypto *vi)
187187
if (ret)
188188
goto err_free;
189189

190-
get_online_cpus();
190+
cpus_read_lock();
191191
virtcrypto_set_affinity(vi);
192-
put_online_cpus();
192+
cpus_read_unlock();
193193

194194
return 0;
195195

0 commit comments

Comments
 (0)