lkml.org 
[lkml]   [2010]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/20] x86/ticketlock: remove .slock
    Date
    From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

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

    diff --git a/arch/x86/include/asm/spinlock_types.h b/arch/x86/include/asm/spinlock_types.h
    index b396ed5..def8010 100644
    --- a/arch/x86/include/asm/spinlock_types.h
    +++ b/arch/x86/include/asm/spinlock_types.h
    @@ -20,7 +20,6 @@ typedef u32 __ticketpair_t;

    typedef struct arch_spinlock {
    union {
    - unsigned int slock;
    __ticketpair_t ticketpair;
    struct __raw_tickets {
    __ticket_t head, tail;
    @@ -31,7 +30,7 @@ typedef struct arch_spinlock {
    #endif
    } arch_spinlock_t;

    -#define __ARCH_SPIN_LOCK_UNLOCKED { { .slock = 0 } }
    +#define __ARCH_SPIN_LOCK_UNLOCKED { { .tickets = {0, 0} } }

    typedef struct {
    unsigned int lock;
    --
    1.7.2.3


    \
     
     \ /
      Last update: 2010-11-03 16:27    [W:0.029 / U:0.056 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site