diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2021-08-03 17:15:44 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-08-28 02:46:17 +0300 |
commit | c7483d823ee0da31e42d32e51a752f667a059735 (patch) | |
tree | d92577113ec2bddcba80cb0647883691b51ab372 /Documentation/core-api/cpu_hotplug.rst | |
parent | 49b3bd213a9f3d685784913c255c6a2cb3d1fcce (diff) | |
download | linux-c7483d823ee0da31e42d32e51a752f667a059735.tar.xz |
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 <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210803141621.780504-2-bigeasy@linutronix.de
Diffstat (limited to 'Documentation/core-api/cpu_hotplug.rst')
-rw-r--r-- | Documentation/core-api/cpu_hotplug.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/core-api/cpu_hotplug.rst b/Documentation/core-api/cpu_hotplug.rst index a2c96bec5ee8..1122cd3044c0 100644 --- a/Documentation/core-api/cpu_hotplug.rst +++ b/Documentation/core-api/cpu_hotplug.rst @@ -220,7 +220,7 @@ goes online (offline) and during initial setup (shutdown) of the driver. However each registration and removal function is also available with a ``_nocalls`` suffix which does not invoke the provided callbacks if the invocation of the callbacks is not desired. During the manual setup (or teardown) the functions -``get_online_cpus()`` and ``put_online_cpus()`` should be used to inhibit CPU +``cpus_read_lock()`` and ``cpus_read_unlock()`` should be used to inhibit CPU hotplug operations. |