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: NMatt Turner <mattst88@gmail.com> Signed-off-by: NMatt Turner <mattst88@gmail.com> Signed-off-by: NRichard Henderson <rth@twiddle.net>
Showing
想要评论请 注册 或 登录