|
@@ -70,10 +70,10 @@ static void fixup_rt_mutex_waiters(struct rt_mutex *lock)
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * We can speed up the acquire/release, if the architecture
|
|
|
- * supports cmpxchg and if there's no debugging state to be set up
|
|
|
+ * We can speed up the acquire/release, if there's no debugging state to be
|
|
|
+ * set up.
|
|
|
*/
|
|
|
-#if defined(__HAVE_ARCH_CMPXCHG) && !defined(CONFIG_DEBUG_RT_MUTEXES)
|
|
|
+#ifndef CONFIG_DEBUG_RT_MUTEXES
|
|
|
# define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c)
|
|
|
static inline void mark_rt_mutex_waiters(struct rt_mutex *lock)
|
|
|
{
|