Remove the uiscmpxchg64 macro from uisqueue.h and uisqueue.c.
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 };
 
-#ifndef __xg
-#define __xg(x) ((volatile long *)(x))
-#endif
-
-/*
-*  Below code is a copy of Linux kernel's cmpxchg function located at
-*  this place
-*  http://tcsxeon:8080/source/xref/00trunk-AppOS-linux/include/asm-x86/cmpxchg_64.h#84
-*  Reason for creating our own version of cmpxchg along with
-*  UISLIB_LOCK_PREFIX is to make the operation atomic even for non SMP
-*  guests.
-*/
-
-#define uislibcmpxchg64(p, o, n, s) cmpxchg(p, o, n)
-
 #endif                         /* __UISQUEUE_H__ */
 
        j = readq(Target);
        do {
                i = j;
-               j = uislibcmpxchg64((__force unsigned long long *)Target,
-                                   i, i | Set, sizeof(*(Target)));
+               j = cmpxchg((__force unsigned long long *)Target, i, i | Set);
 
        } while (i != j);
 
        j = readq(Target);
        do {
                i = j;
-               j = uislibcmpxchg64((__force unsigned long long *)Target,
-                                   i, i & Set, sizeof(*(Target)));
+               j = cmpxchg((__force unsigned long long *)Target, i, i & Set);
 
        } while (i != j);