lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/12] x86/cmpxchg: move 64-bit set64_bit() to match 32-bit
    Date
    From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    arch/x86/include/asm/cmpxchg_64.h | 10 +++++-----
    1 files changed, 5 insertions(+), 5 deletions(-)

    diff --git a/arch/x86/include/asm/cmpxchg_64.h b/arch/x86/include/asm/cmpxchg_64.h
    index 423ae58..aeaa610 100644
    --- a/arch/x86/include/asm/cmpxchg_64.h
    +++ b/arch/x86/include/asm/cmpxchg_64.h
    @@ -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

    /*
    --
    1.7.6


    \
     
     \ /
      Last update: 2011-08-24 23:43    [W:0.018 / U:6.828 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site