[lkml]   [1999]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: possible spinlock optimizations
    On Tue, 28 Sep 1999, Momchil Velikov wrote:

    >How do you atomically-acquire-the-lock-and-disable-interrupts
    >(I assume we are talking about x86 here) ?

    No. You acquire the lock with irq disabled as usual.

    If you are not been succesfully in grabbing the lock you go to the slow
    path where you don't try to grab the lock each time to not ping pong the
    cachelines everywhere and to not flood the bus with lock signals. During
    such loop you can enable irqs.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:54    [W:0.018 / U:132.876 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site