diff options
author | Jason Low <[email protected]> | 2015-04-08 12:39:19 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-04-09 08:10:23 +0200 |
commit | 01ac33c1f907b366dcc50551316b372f1519cca9 (patch) | |
tree | 3acec01dacf54ca648dda938b21fe5a0626f9e5b /tools/perf/scripts/python/syscall-counts.py | |
parent | 7bd3e239d6c6d1cad276e8f130b386df4234dcd7 (diff) |
locking/mutex: Further simplify mutex_spin_on_owner()
Similar to what Linus suggested for rwsem_spin_on_owner(), in
mutex_spin_on_owner() instead of having while (true) and
breaking out of the spin loop on lock->owner != owner, we can
have the loop directly check for while (lock->owner == owner) to
improve the readability of the code.
It also shrinks the code a bit:
text data bss dec hex filename
3721 0 0 3721 e89 mutex.o.before
3705 0 0 3705 e79 mutex.o.after
Signed-off-by: Jason Low <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Aswin Chandramouleeswaran <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tim Chen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Added code generation info. ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions