diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-16 12:34:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:48 -0700 |
commit | 28b6ca9c07787885b89972929f45084eb3197d98 (patch) | |
tree | a6b79999e6d0b1151e42efd1d6ff81f8c5a62b6a | |
parent | b4362c9c1fe8bec487e275f92fdf57c585ac236a (diff) | |
download | op-kernel-dev-28b6ca9c07787885b89972929f45084eb3197d98.zip op-kernel-dev-28b6ca9c07787885b89972929f45084eb3197d98.tar.gz |
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>
-rw-r--r-- | drivers/staging/hv/RingBuffer.c | 4 | ||||
-rw-r--r-- | drivers/staging/hv/Vmbus.c | 2 | ||||
-rw-r--r-- | drivers/staging/hv/include/osd.h | 2 | ||||
-rw-r--r-- | drivers/staging/hv/osd.c | 5 |
4 files changed, 3 insertions, 10 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); diff --git a/drivers/staging/hv/Vmbus.c b/drivers/staging/hv/Vmbus.c index 4ad40be..72bb08f 100644 --- a/drivers/staging/hv/Vmbus.c +++ b/drivers/staging/hv/Vmbus.c @@ -426,7 +426,7 @@ VmbusOnMsgDPC( // Make sure the write to MessageType (ie set to HvMessageTypeNone) happens // before we read the MessagePending and EOMing. Otherwise, the EOMing will not deliver // any more messages since there is no empty slot - MemoryFence(); + mb(); if (msg->Header.MessageFlags.MessagePending) { diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 504d585..467196d 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -119,8 +119,6 @@ extern void PageFree(void* page, unsigned int count); extern void* MemMapIO(unsigned long phys, unsigned long size); extern void MemUnmapIO(void* virt); -extern void MemoryFence(void); - extern HANDLE TimerCreate(PFN_TIMER_CALLBACK pfnTimerCB, void* context); extern void TimerClose(HANDLE hTimer); extern int TimerStop(HANDLE hTimer); diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c index 0c2ad49..7a4c438 100644 --- a/drivers/staging/hv/osd.c +++ b/drivers/staging/hv/osd.c @@ -197,11 +197,6 @@ void MemUnmapIO(void *virt) //iounmap(virt); } -void MemoryFence() -{ - mb(); -} - void TimerCallback(unsigned long data) { TIMER* t = (TIMER*)data; |