Skip to content

Commit 23b5ae2

Browse files
Alex ShiKAGA-KOKO
authored andcommitted
locking/rtmutex: Remove unused rt_mutex_cmpxchg_relaxed()
Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/1587135032-188866-1-git-send-email-alex.shi@linux.alibaba.com
1 parent 6a8b55e commit 23b5ae2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/locking/rtmutex.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ static void fixup_rt_mutex_waiters(struct rt_mutex *lock)
141141
* set up.
142142
*/
143143
#ifndef CONFIG_DEBUG_RT_MUTEXES
144-
# define rt_mutex_cmpxchg_relaxed(l,c,n) (cmpxchg_relaxed(&l->owner, c, n) == c)
145144
# define rt_mutex_cmpxchg_acquire(l,c,n) (cmpxchg_acquire(&l->owner, c, n) == c)
146145
# define rt_mutex_cmpxchg_release(l,c,n) (cmpxchg_release(&l->owner, c, n) == c)
147146

@@ -202,7 +201,6 @@ static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock,
202201
}
203202

204203
#else
205-
# define rt_mutex_cmpxchg_relaxed(l,c,n) (0)
206204
# define rt_mutex_cmpxchg_acquire(l,c,n) (0)
207205
# define rt_mutex_cmpxchg_release(l,c,n) (0)
208206

0 commit comments

Comments
 (0)