workqueue: Replace deprecated CPU-hotplug functions.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 3 Aug 2021 14:16:20 +0000 (16:16 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 Aug 2021 22:33:30 +0000 (12:33 -1000)
commitffd8bea81fbb5abe6518bce8d6297a149b935cf7
treea70454bfb5da6a25b921405514dbd46a24eeb85b
parente441b56fe438fd126b9eea7d30c57d3cd3f34e14
workqueue: 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: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c