Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RISC-V: __test_and_op_bit_ord should be strongly ordered

I mis-read the documentation. After looking at it again the
documentation is actually as clear as it can be, it's just that I didn't
actually read it in order and therefor did the wrong thing.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>

+1 -1
+1 -1
arch/riscv/include/asm/bitops.h
··· 67 67 : "memory"); 68 68 69 69 #define __test_and_op_bit(op, mod, nr, addr) \ 70 - __test_and_op_bit_ord(op, mod, nr, addr, ) 70 + __test_and_op_bit_ord(op, mod, nr, addr, .aqrl) 71 71 #define __op_bit(op, mod, nr, addr) \ 72 72 __op_bit_ord(op, mod, nr, addr, ) 73 73