Home
last modified time | relevance | path

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

/kernel/locking/
Drwbase_rt.c53 static __always_inline int rwbase_read_trylock(struct rwbase_rt *rwb) in rwbase_read_trylock() argument
61 for (r = atomic_read(&rwb->readers); r < 0;) { in rwbase_read_trylock()
62 if (likely(atomic_try_cmpxchg_acquire(&rwb->readers, &r, r + 1))) in rwbase_read_trylock()
68 static int __sched __rwbase_read_lock(struct rwbase_rt *rwb, in __rwbase_read_lock() argument
71 struct rt_mutex_base *rtm = &rwb->rtmutex; in __rwbase_read_lock()
79 if (atomic_read(&rwb->readers) != WRITER_BIAS) { in __rwbase_read_lock()
80 atomic_inc(&rwb->readers); in __rwbase_read_lock()
115 trace_contention_begin(rwb, LCB_F_RT | LCB_F_READ); in __rwbase_read_lock()
131 atomic_inc(&rwb->readers); in __rwbase_read_lock()
136 trace_contention_end(rwb, ret); in __rwbase_read_lock()
[all …]