[lkml]   [2001]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: SMP spin-locks
    Kurt Garloff wrote:
    > On Thu, Jun 14, 2001 at 01:26:05PM -0400, Richard B. Johnson wrote:
    > > Question 2: What is the purpose of the code sequence, "repz nop"
    > Puts iP4 into low power mode.

    Umm, slightly more accurate would be to say that it makes the P4 processor
    wait before resuming the loop to give the lock a chance to have been
    released. It makes the code go from a constant busy loop to a check/wait
    small amount of time/check again loop. This in turns keeps your processor
    from trying to constantly check the lock itself which is suppossed to have
    benefits in terms of inter-processor bus pressure.


    Doug Ledford <>
    Please check my web site for aic7xxx updates/answers before
    e-mailing me about problems
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:55    [W:0.022 / U:28.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site