Messages in this thread |  | | Date | Mon, 17 Sep 2001 10:06:21 -0700 | From | Jonathan Lundell <> | Subject | Re: [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/
|  |