Skip to content

Commit c7483d8

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
Documentation: 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(). Update the documentation accordingly. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 49b3bd2 commit c7483d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/core-api/cpu_hotplug.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ goes online (offline) and during initial setup (shutdown) of the driver. However
220220
each registration and removal function is also available with a ``_nocalls``
221221
suffix which does not invoke the provided callbacks if the invocation of the
222222
callbacks is not desired. During the manual setup (or teardown) the functions
223-
``get_online_cpus()`` and ``put_online_cpus()`` should be used to inhibit CPU
223+
``cpus_read_lock()`` and ``cpus_read_unlock()`` should be used to inhibit CPU
224224
hotplug operations.
225225

226226

Documentation/trace/ftrace.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,7 @@ listed in:
27622762
put_prev_task_idle
27632763
kmem_cache_create
27642764
pick_next_task_rt
2765-
get_online_cpus
2765+
cpus_read_lock
27662766
pick_next_task_fair
27672767
mutex_lock
27682768
[...]

0 commit comments

Comments
 (0)