diff options
author | 2019-10-01 21:53:32 +0000 | |
---|---|---|
committer | 2019-10-07 09:42:52 -0700 | |
commit | aad028cadb17867d257e8b90078f6a19614775ff (patch) | |
tree | ebc5bbb543dc184474688797f4de13303496b911 /arch/mips/lib/bitops.c | |
parent | MIPS: bitops: Use the BIT() macro (diff) | |
download | linux-dev-aad028cadb17867d257e8b90078f6a19614775ff.tar.xz linux-dev-aad028cadb17867d257e8b90078f6a19614775ff.zip |
MIPS: bitops: Avoid redundant zero-comparison for non-LLSC
The IRQ-disabling non-LLSC fallbacks for bitops on UP systems already
return a zero or one, so there's no need to perform another comparison
against zero. Move these comparisons into the LLSC paths to avoid the
redundant work.
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
Diffstat (limited to 'arch/mips/lib/bitops.c')
0 files changed, 0 insertions, 0 deletions