Home
last modified time | relevance | path

Searched refs:rt_mutex_cmpxchg (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/kernel/
Drtmutex.c75 # define rt_mutex_cmpxchg(l,c,n) (cmpxchg(&l->owner, c, n) == c) macro
85 # define rt_mutex_cmpxchg(l,c,n) (0) macro
736 if (!detect_deadlock && likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_fastlock()
750 if (!detect_deadlock && likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_timed_fastlock()
761 if (likely(rt_mutex_cmpxchg(lock, NULL, current))) { in rt_mutex_fasttrylock()
772 if (likely(rt_mutex_cmpxchg(lock, current, NULL))) in rt_mutex_fastunlock()
/linux-2.6.39/Documentation/
Drt-mutex-design.txt348 The macro rt_mutex_cmpxchg is used to try to lock and unlock mutexes. If
353 The use of rt_mutex_cmpxchg with the flags in the owner field help optimize