diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-29 17:00:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:53 -0700 |
commit | f4888417083723c4f5cbfdf4895653279ffdc31e (patch) | |
tree | 4ee4e2bcda543e30f9e76925edaf796de8a922bb /drivers/staging/hv/osd.c | |
parent | 7c369f405bc918f3245c7ee0b0ad6c6b6c750166 (diff) | |
download | op-kernel-dev-f4888417083723c4f5cbfdf4895653279ffdc31e.zip op-kernel-dev-f4888417083723c4f5cbfdf4895653279ffdc31e.tar.gz |
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.c | 20 |
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__ |