summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/RingBuffer.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-07-16 19:34:20 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 19:01:48 (GMT)
commit28b6ca9c07787885b89972929f45084eb3197d98 (patch)
treea6b79999e6d0b1151e42efd1d6ff81f8c5a62b6a /drivers/staging/hv/RingBuffer.c
parentb4362c9c1fe8bec487e275f92fdf57c585ac236a (diff)
downloadlinux-fsl-qoriq-28b6ca9c07787885b89972929f45084eb3197d98.tar.xz
Staging: hv: osd: remove MemoryFence wrapper
Use the "real" mb call instead of a wrapper function. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/RingBuffer.c')
-rw-r--r--drivers/staging/hv/RingBuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c
index 21fc4cc..e995468 100644
--- a/drivers/staging/hv/RingBuffer.c
+++ b/drivers/staging/hv/RingBuffer.c
@@ -411,7 +411,7 @@ RingBufferWrite(
sizeof(u64));
// Make sure we flush all writes before updating the writeIndex
- MemoryFence();
+ mb();
// Now, update the write location
SetNextWriteLocation(OutRingInfo, nextWriteLocation);
@@ -532,7 +532,7 @@ RingBufferRead(
// Make sure all reads are done before we update the read index since
// the writer may start writing to the read area once the read index is updated
- MemoryFence();
+ mb();
// Update the read index
SetNextReadLocation(InRingInfo, nextReadLocation);