lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 06/18] x86/ticketlock: make __ticket_spin_trylock common
    On 08/24/2011 02:43 PM, Andi Kleen wrote:
    > On Wed, Aug 24, 2011 at 02:38:12PM -0700, Linus Torvalds wrote:
    >> On Wed, Aug 24, 2011 at 1:00 PM, Andi Kleen <andi@firstfloor.org> wrote:
    >>> Can't we just get rid of the small ticket size code path?
    >>>
    >>> I couldn't benchmark any difference between the two last time
    >>> I tried.
    >> The small locks aren't any faster. They are just smaller.
    > Are you sure?
    >
    > AFAIK it's always
    >
    > typedef struct arch_spinlock {
    > unsigned int slock;
    > } arch_spinlock_t;

    Hm, I changed that in this series; arch_spinlock can be 16 bits in the
    <256 case. I wonder if it matters...

    J


    \
     
     \ /
      Last update: 2011-08-24 23:51    [W:2.602 / U:0.368 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site