aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/io_32.h10
-rw-r--r--arch/x86/include/asm/io_64.h8
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/include/asm/io_32.h b/arch/x86/include/asm/io_32.h
index 685e33293468..e8177f3b87f6 100644
--- a/arch/x86/include/asm/io_32.h
+++ b/arch/x86/include/asm/io_32.h
@@ -84,18 +84,12 @@ memcpy_toio(volatile void __iomem *dst, const void *src, size_t count)
84 * 2. Accidentally out of order processors (PPro errata #51) 84 * 2. Accidentally out of order processors (PPro errata #51)
85 */ 85 */
86 86
87#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)
88
89static inline void flush_write_buffers(void) 87static inline void flush_write_buffers(void)
90{ 88{
89#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)
91 asm volatile("lock; addl $0,0(%%esp)": : :"memory"); 90 asm volatile("lock; addl $0,0(%%esp)": : :"memory");
92}
93
94#else
95
96#define flush_write_buffers() do { } while (0)
97
98#endif 91#endif
92}
99 93
100#endif /* __KERNEL__ */ 94#endif /* __KERNEL__ */
101 95
diff --git a/arch/x86/include/asm/io_64.h b/arch/x86/include/asm/io_64.h
index 1305525813fc..6964a1c366d3 100644
--- a/arch/x86/include/asm/io_64.h
+++ b/arch/x86/include/asm/io_64.h
@@ -83,7 +83,13 @@ memcpy_toio(volatile void __iomem *dst, const void *src, size_t count)
83 * 1. Out of order aware processors 83 * 1. Out of order aware processors
84 * 2. Accidentally out of order processors (PPro errata #51) 84 * 2. Accidentally out of order processors (PPro errata #51)
85 */ 85 */
86#define flush_write_buffers() do { } while (0) 86
87static inline void flush_write_buffers(void)
88{
89#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)
90 asm volatile("lock; addl $0,0(%%esp)": : :"memory");
91#endif
92}
87 93
88#endif /* __KERNEL__ */ 94#endif /* __KERNEL__ */
89 95