diff options
| author | Dr. David Alan Gilbert <linux@treblig.org> | 2024-12-15 02:20:23 +0000 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2025-03-21 17:12:04 -0500 |
| commit | fec04edb74126f21ac628c7be763c97deb49f69d (patch) | |
| tree | 6e302c66c5b40b666912cf95df268f955634cbdf /Documentation | |
| parent | e9a3682d17d5afee697fc95d3fa342d740767fad (diff) | |
hwspinlock: Remove unused hwspin_lock_get_id()
hwspin_lock_get_id() has been unused since the original 2011
commit bd9a4c7df256 ("drivers: hwspinlock: add framework")
Remove it and the corresponding docs.
Note that the of_hwspin_lock_get_id() version is still in use,
so leave that alone.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241215022023.181435-1-linux@treblig.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/locking/hwspinlock.rst | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Documentation/locking/hwspinlock.rst b/Documentation/locking/hwspinlock.rst index d482422d7a38..a737c702a7d1 100644 --- a/Documentation/locking/hwspinlock.rst +++ b/Documentation/locking/hwspinlock.rst @@ -301,17 +301,6 @@ The caller should **never** unlock an hwspinlock which is already unlocked. Doing so is considered a bug (there is no protection against this). This function will never sleep. -:: - - int hwspin_lock_get_id(struct hwspinlock *hwlock); - -Retrieve id number of a given hwspinlock. This is needed when an -hwspinlock is dynamically assigned: before it can be used to achieve -mutual exclusion with a remote cpu, the id number should be communicated -to the remote task with which we want to synchronize. - -Returns the hwspinlock id number, or -EINVAL if hwlock is null. - Typical usage ============= |
