asm-generic/mmiowb: Add generic implementation of mmiowb() tracking
In preparation for removing all explicit mmiowb() calls from driver code, implement a tracking system in asm-generic based loosely on the PowerPC implementation. This allows architectures with a non-empty mmiowb() definition to have the barrier automatically inserted in spin_unlock() following a critical section containing an I/O write. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
此提交包含在:
@@ -251,3 +251,10 @@ config ARCH_USE_QUEUED_RWLOCKS
|
||||
config QUEUED_RWLOCKS
|
||||
def_bool y if ARCH_USE_QUEUED_RWLOCKS
|
||||
depends on SMP
|
||||
|
||||
config ARCH_HAS_MMIOWB
|
||||
bool
|
||||
|
||||
config MMIOWB
|
||||
def_bool y if ARCH_HAS_MMIOWB
|
||||
depends on SMP
|
||||
|
新增問題並參考
封鎖使用者