]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86/cmpxchg: move 64-bit set64_bit() to match 32-bit
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 18 Aug 2011 18:40:22 +0000 (11:40 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 24 Aug 2011 20:54:45 +0000 (13:54 -0700)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/include/asm/cmpxchg_64.h

index 423ae58aa0203cf2116b8474609c848ba70694c7..aeaa6105ad2f8ddb22848ff66947cdfec1ebe162 100644 (file)
@@ -3,11 +3,6 @@
 
 #include <asm/alternative.h> /* Provides LOCK_PREFIX */
 
-static inline void set_64bit(volatile u64 *ptr, u64 val)
-{
-       *ptr = val;
-}
-
 extern void __xchg_wrong_size(void);
 extern void __cmpxchg_wrong_size(void);
 
@@ -66,6 +61,11 @@ extern void __cmpxchg_wrong_size(void);
 #define xchg(ptr, v)                                                   \
        __xchg((v), (ptr), sizeof(*ptr))
 
+static inline void set_64bit(volatile u64 *ptr, u64 val)
+{
+       *ptr = val;
+}
+
 #define __HAVE_ARCH_CMPXCHG 1
 
 /*