commit | cc99987c375e499a95572504d69c215591222072 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@mips.com> | Tue Oct 01 21:53:33 2019 +0000 |
committer | Paul Burton <paul.burton@mips.com> | Mon Oct 07 09:42:53 2019 -0700 |
tree | e305a0f24b3c9b338481de3d2bc56266b57dea60 | |
parent | aad028cadb17867d257e8b90078f6a19614775ff [diff] |
MIPS: bitops: Abstract LL/SC loops Introduce __bit_op() & __test_bit_op() macros which abstract away the implementation of LL/SC loops. This cuts down on a lot of duplicate boilerplate code, and also allows R10000_LLSC_WAR to be handled outside of the individual bitop functions. Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: Huacai Chen <chenhc@lemote.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: linux-kernel@vger.kernel.org