Searched hist:"76916515 d9d84e6552ee5e218e0ed566ad75e600" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/locking/ |
H A D | mutex.c | diff 76916515d9d84e6552ee5e218e0ed566ad75e600 Wed Jul 30 15:41:53 CDT 2014 Davidlohr Bueso <davidlohr@hp.com> locking/mutexes: Refactor optimistic spinning code
When we fail to acquire the mutex in the fastpath, we end up calling __mutex_lock_common(). A *lot* goes on in this function. Move out the optimistic spinning code into mutex_optimistic_spin() and simplify the former a bit. Furthermore, this is similar to what we have in rwsems. No logical changes.
Signed-off-by: Davidlohr Bueso <davidlohr@hp.com> Acked-by: Jason Low <jason.low2@hp.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: aswin@hp.com Cc: mingo@kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/1406752916-3341-4-git-send-email-davidlohr@hp.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
|