]> git.baikalelectronics.ru Git - kernel.git/commit
alpha: Improve atomic_add_unless
authorRichard Henderson <rth@twiddle.net>
Thu, 11 Jul 2013 14:42:14 +0000 (07:42 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 19 Jul 2013 20:54:24 +0000 (13:54 -0700)
commit2cb463892c323b1088b1d3d1b625e972e3fafbbe
treef29b23ea3236acda9db434aa89052537f2a8092a
parente997901e38c881c248f439f954704ae92430d32a
alpha: Improve atomic_add_unless

Use ll/sc loops instead of C loops around cmpxchg.
Update the atomic64_add_unless block comment to match the code.

Reviewed-and-Tested-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
arch/alpha/include/asm/atomic.h