mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Will Deacon <[email protected]>
This commit is contained in:
parent
4614bbdee3
commit
d1be6a28b1
4 changed files with 89 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue