Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182555
b: refs/heads/master
c: 910bf6a
h: refs/heads/master
i:
  182553: df24b52
  182551: 01f2fa7
v: v3
  • Loading branch information
Brian Gerst authored and H. Peter Anvin committed Feb 5, 2010
1 parent d3a9ef3 commit 81b8fc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6175ddf06b6172046a329e3abfd9c901a43efd2e
refs/heads/master: 910bf6ad0be3e1efbda0e9d358794937b52c9860
10 changes: 2 additions & 8 deletions trunk/arch/x86/include/asm/io_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,12 @@ memcpy_toio(volatile void __iomem *dst, const void *src, size_t count)
* 2. Accidentally out of order processors (PPro errata #51)
*/

#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)

static inline void flush_write_buffers(void)
{
#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)
asm volatile("lock; addl $0,0(%%esp)": : :"memory");
}

#else

#define flush_write_buffers() do { } while (0)

#endif
}

#endif /* __KERNEL__ */

Expand Down
8 changes: 7 additions & 1 deletion trunk/arch/x86/include/asm/io_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ memcpy_toio(volatile void __iomem *dst, const void *src, size_t count)
* 1. Out of order aware processors
* 2. Accidentally out of order processors (PPro errata #51)
*/
#define flush_write_buffers() do { } while (0)

static inline void flush_write_buffers(void)
{
#if defined(CONFIG_X86_OOSTORE) || defined(CONFIG_X86_PPRO_FENCE)
asm volatile("lock; addl $0,0(%%esp)": : :"memory");
#endif
}

#endif /* __KERNEL__ */

Expand Down

0 comments on commit 81b8fc3

Please sign in to comment.