aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/io.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2019-02-22 13:03:18 +0000
committerWill Deacon <will.deacon@arm.com>2019-04-08 12:00:01 +0100
commit08f1f3a72f4cea136686585b81a251baa3539f12 (patch)
treee3cd9a94d5ec11823340c6f3821a1237c773a644 /arch/x86/include/asm/io.h
parentarm64/io: Remove useless definition of mmiowb() (diff)
downloadlinux-dev-08f1f3a72f4cea136686585b81a251baa3539f12.tar.xz
linux-dev-08f1f3a72f4cea136686585b81a251baa3539f12.zip
x86/io: Remove useless definition of mmiowb()
x86 maps mmiowb() to barrier(), but this is superfluous because a compiler barrier is already implied by spin_unlock(). Since x86 also includes asm-generic/io.h in its asm/io.h file, remove the definition entirely and pick up the dummy definition from core code. Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/x86/include/asm/io.h')
-rw-r--r--arch/x86/include/asm/io.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index 686247db3106..a06a9f8294ea 100644
--- a/arch/x86/include/asm/io.h
+++ b/arch/x86/include/asm/io.h
@@ -90,8 +90,6 @@ build_mmio_write(__writel, "l", unsigned int, "r", )
#define __raw_writew __writew
#define __raw_writel __writel
-#define mmiowb() barrier()
-
#ifdef CONFIG_X86_64
build_mmio_read(readq, "q", u64, "=r", :"memory")