]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw
authorPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 16 Jul 2020 18:57:26 +0000 (11:57 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 17 Jul 2020 16:28:35 +0000 (09:28 -0700)
commit12cf32634d25548f9f8dd1a90f2ef4ee88bcab03
tree95be1d51d69478dbf93f5bb8c2a4e6c7729d21f9
parentfe6baab2a373e6e8497aba150f0367d8057726d6
RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw

While digging through the recent mmiowb preemption issue it came up that
we aren't actually preventing IO from crossing a scheduling boundary.
While it's a bit ugly to overload smp_mb__after_spinlock() with this
behavior, it's what PowerPC is doing so there's some precedent.

Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/barrier.h