]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - include/asm-generic/io.h
mmiowb: Hook up mmiowb helpers to spinlocks and generic I/O accessors
authorWill Deacon <will.deacon@arm.com>
Fri, 22 Feb 2019 12:59:59 +0000 (12:59 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 8 Apr 2019 10:59:47 +0000 (11:59 +0100)
commit60ca1e5a200cd294a12907fa36dece4241db4ab8
tree2dcd2e666b2b1cad4ce0c80f263cb122bdeebc1b
parentfdcd06a8ab775cbe716ff893372bed580e4c8a1c
mmiowb: Hook up mmiowb helpers to spinlocks and generic I/O accessors

Removing explicit calls to mmiowb() from driver code means that we must
now call into the generic mmiowb_spin_{lock,unlock}() functions from the
core spinlock code. In order to elide barriers following critical
sections without any I/O writes, we also hook into the asm-generic I/O
routines.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/asm-generic/io.h
include/linux/spinlock.h
kernel/locking/spinlock_debug.c