]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Resurrect smp_mb__after_spinlock()
authorPalmer Dabbelt <palmer@sifive.com>
Wed, 6 Dec 2017 01:48:11 +0000 (17:48 -0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Mon, 11 Dec 2017 15:51:07 +0000 (07:51 -0800)
commit59e34a9c06a34aca729d0287022ed0e7f7d029be
tree805a705c5ab4544fe0bb8402a21433805a502f7e
parent7715062c1081e83fe40e5bef68674d5e8576b8e1
RISC-V: Resurrect smp_mb__after_spinlock()

I removed this last week because of an incorrect comment:
smp_mb__after_spinlock() is actually still used, and is necessary on
RISC-V.  It's been resurrected, with a comment that describes what it
actually does this time.  Thanks to Andrea for finding the bug!

Fixes: 653d99c7c678 ("RISC-V: Remove smb_mb__{before,after}_spinlock()")
CC: Andrea Parri <parri.andrea@gmail.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/barrier.h