summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/Channel.c
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2009-07-29 21:00:12 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 19:01:53 (GMT)
commitf4888417083723c4f5cbfdf4895653279ffdc31e (patch)
tree4ee4e2bcda543e30f9e76925edaf796de8a922bb /drivers/staging/hv/Channel.c
parent7c369f405bc918f3245c7ee0b0ad6c6b6c750166 (diff)
downloadlinux-fsl-qoriq-f4888417083723c4f5cbfdf4895653279ffdc31e.tar.xz
Staging: hv: remove wrapper functions for atomic operations
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/Channel.c')
-rw-r--r--drivers/staging/hv/Channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/Channel.c b/drivers/staging/hv/Channel.c
index 4b5e3e4..61fc345 100644
--- a/drivers/staging/hv/Channel.c
+++ b/drivers/staging/hv/Channel.c
@@ -540,8 +540,8 @@ VmbusChannelEstablishGpadl(
DPRINT_ENTER(VMBUS);
- nextGpadlHandle = gVmbusConnection.NextGpadlHandle;
- InterlockedIncrement((int*)&gVmbusConnection.NextGpadlHandle);
+ nextGpadlHandle = atomic_read(&gVmbusConnection.NextGpadlHandle);
+ atomic_inc(&gVmbusConnection.NextGpadlHandle);
VmbusChannelCreateGpadlHeader(Kbuffer, Size, &msgInfo, &msgCount);
ASSERT(msgInfo != NULL);