lkml.org 
[lkml]   [2006]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Why Semaphore Hardware-Dependent?
    Date
    Andi Kleen <ak@suse.de> wrote:

    > BTW maybe it would be a good idea to switch the wait list to a hlist,
    > then the last user in the queue wouldn't need to
    > touch the cache line of the head. Or maybe even a single linked
    > list then some more cache bounces might be avoidable.

    You need a list_head to get O(1) push at one end and O(1) pop at the other.
    In addition a singly-linked list makes interruptible ops non-O(1) also.

    David
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-08-29 20:33    [W:0.018 / U:1.896 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site