]> 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)
commitf360f273dceff87be0693020425e952156290a7a
treef5e9fe0bc2a8eaa1669802af515b91498ea806af
parentba310d2a27daea17da87cbd01a9fb2d5eddfec06
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: 178c04173a91 ("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