From: Ingo Oeser <ioe-lkml@rameria.de>
To: linux-kernel@vger.kernel.org
Cc: "Mukker, Atul" <Atulm@lsil.com>,
"'Jeff Garzik'" <jgarzik@pobox.com>,
"Bagalkote, Sreenivas" <sreenib@lsil.com>,
"'Christoph Hellwig'" <hch@infradead.org>,
"'Matt_Domsch@dell.com'" <Matt_Domsch@dell.com>,
"'paul@kungfoocoder.org'" <paul@kungfoocoder.org>,
"'James.Bottomley@SteelEye.com'" <James.Bottomley@SteelEye.com>,
"'arjanv@redhat.com'" <arjanv@redhat.com>,
"'linux-scsi@vger.kernel.org'" <linux-scsi@vger.kernel.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH][RELEASE]: megaraid unified driver version 2.20.0.B1
Date: Sat, 17 Apr 2004 15:11:17 +0200 [thread overview]
Message-ID: <200404171511.18070.ioe-lkml@rameria.de> (raw)
In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E57033BC544@exa-atlanta.se.lsil.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Saturday 17 April 2004 08:40, Mukker, Atul wrote:
> > Typically, one includes a simple counter to ensure the loop is not
> > infinite...
> >
> > while (condition && (counter-- > 0))
> > cpu_relax()
> >
> The hard part is arriving at the counter value. Given that this driver might
> run on a 700MHz singe cpu, one of my test servers :-( or a 3.2GHz SMP server
> - the typical counter value is difficult to set. But you are right, we
> should find out the typical time a cpu would take to execute so many
> iterations and base counter value over it.
Then you might use a udelay(1) instead. This should equalize this
effect, no?
Regards
Ingo Oeser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAgSz1U56oYWuOrkARApDLAKDRyAJk7wL4T2M5NDjo3sUVT9sXTACgiEmo
3NQ5RyBs8aIWxrrfCzlP4JM=
=3K/t
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2004-04-17 13:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-17 6:40 Mukker, Atul
2004-04-17 13:11 ` Ingo Oeser [this message]
2004-04-18 14:00 ` Matt Domsch
-- strict thread matches above, loose matches on Subject: below --
2004-04-16 22:50 Mukker, Atul
2004-04-16 23:38 ` Jeff Garzik
[not found] <0E3FA95632D6D047BA649F95DAB60E570230C7DB@exa-atlanta.se.lsil.com>
2004-04-16 18:01 ` Jeff Garzik
2004-04-16 18:24 ` Brian King
2004-04-16 18:30 ` Jeff Garzik
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=200404171511.18070.ioe-lkml@rameria.de \
--to=ioe-lkml@rameria.de \
--cc=Atulm@lsil.com \
--cc=James.Bottomley@SteelEye.com \
--cc=Matt_Domsch@dell.com \
--cc=arjanv@redhat.com \
--cc=hch@infradead.org \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=paul@kungfoocoder.org \
--cc=sreenib@lsil.com \
/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®