]> git.baikalelectronics.ru Git - kernel.git/commit
provide arch_test_bit_acquire for architectures that define test_bit
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 26 Aug 2022 20:43:51 +0000 (16:43 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 27 Aug 2022 16:49:54 +0000 (09:49 -0700)
commit9550ad9ebf8c988ad90ad84b662f0c9cf3739f57
treef5e9fe0bc2a8eaa1669802af515b91498ea806af
parent52ee17bfbc87189b310cfc94f6175acae5656a8f
provide arch_test_bit_acquire for architectures that define test_bit

Some architectures define their own arch_test_bit and they also need
arch_test_bit_acquire, otherwise they won't compile.  We also clean up
the code by using the generic test_bit if that is equivalent to the
arch-specific version.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: bf70715e9ad8 ("wait_on_bit: add an acquire memory barrier")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/bitops.h
arch/hexagon/include/asm/bitops.h
arch/ia64/include/asm/bitops.h
arch/m68k/include/asm/bitops.h
arch/s390/include/asm/bitops.h
arch/sh/include/asm/bitops-op32.h