From: Jonathan Lundell <jlundell@pobox.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [Q] Implementation of spin_lock on i386: why "rep;nop" ?
Date: Mon, 17 Sep 2001 10:06:21 -0700 [thread overview]
Message-ID: <p05100303b7cbdde50ddd@[10.128.7.49]> (raw)
In-Reply-To: <Pine.LNX.3.95.1010917123904.14830A-100000@chaos.analogic.com>
In-Reply-To: <Pine.LNX.3.95.1010917123904.14830A-100000@chaos.analogic.com>
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.
next prev parent reply other threads:[~2001-09-17 17:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-17 16:16 Jean-Marc Saffroy
2001-09-17 16:22 ` Dave Jones
2001-09-17 17:19 ` Jean-Marc Saffroy
2001-09-17 16:42 ` Richard B. Johnson
2001-09-17 17:06 ` Jonathan Lundell [this message]
2001-09-17 17:27 ` Alan Cox
2001-09-17 19:47 ` H. Peter Anvin
2001-09-19 3:42 ` Jamie Lokier
2001-09-19 4:06 ` Brian Gerst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='p05100303b7cbdde50ddd@[10.128.7.49]' \
--to=jlundell@pobox.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®