aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2014-07-30 13:41:53 -0700
committerIngo Molnar <[email protected]>2014-08-13 10:32:01 +0200
commit76916515d9d84e6552ee5e218e0ed566ad75e600 (patch)
treeca00b7122cfa29a458ec0bc27aae2c67b1b37013 /tools/perf/util/trace-event-scripting.c
parentaa9fc0c19bee0cbc152e0e06488095fb69229236 (diff)
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 <[email protected]> Acked-by: Jason Low <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Linus Torvalds <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions