diff options
author | Peter Zijlstra <[email protected]> | 2017-02-01 16:07:55 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-03-23 08:54:41 +0100 |
commit | b78c0d471255e99411d6c1b3975df21c3cd9f349 (patch) | |
tree | 799156a3c194a43bcfe79f34a5d921f526f97103 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | a9ebf306f52c756c4f9e50ee9a60cd6389d71344 (diff) |
locking/refcounts: Use atomic_try_cmpxchg()
Generates better code (GCC-6.2.1):
text filename
1576 defconfig-build/lib/refcount.o.pre
1488 defconfig-build/lib/refcount.o.post
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions