lkml.org 
[lkml]   [2001]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Q] Implementation of spin_lock on i386: why "rep;nop" ?
At 12:42 PM -0400 2001-09-17, Richard B. Johnson wrote:
> > What is the intent behind this "rep;nop" ? Does it really rely on an
> > undocumented behaviour ?
>
>Well it's now documented although you have to search a web-site to
>find it. Basically, it runs the CPU at low clock-speed when it's
>busy-waiting. Since most all spin-locks lock for mere microseconds
>it's unlikely that it does anything useful, but it can't hurt.

Sounds like a good opportunity for a comment....
--
/Jonathan Lundell.
-
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: 2005-03-22 13:03    [W:0.090 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site