summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/osd.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/osd.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/osd.c')
-rw-r--r--drivers/staging/hv/osd.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c
index ff01a7b..1d33872 100644
--- a/drivers/staging/hv/osd.c
+++ b/drivers/staging/hv/osd.c
@@ -56,26 +56,6 @@ struct osd_callback_struct {
void *data;
};
-int InterlockedIncrement(int *val)
-{
- return atomic_inc_return((atomic_t*)val);
-}
-
-int InterlockedDecrement(int *val)
-{
- return atomic_dec_return((atomic_t*)val);
-}
-
-#ifndef atomic_cmpxchg
-#define atomic_cmpxchg(v, old, new) ((int)cmpxchg(&((v)->counter), old, new))
-#endif
-int InterlockedCompareExchange(int *val, int new, int curr)
-{
- /* return ((int)cmpxchg(((atomic_t*)val), curr, new)); */
- return atomic_cmpxchg((atomic_t*)val, curr, new);
-
-}
-
void* VirtualAllocExec(unsigned int size)
{
#ifdef __x86_64__