From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Why call calibrate_delay() in smp.c: secondary_start_kernel()
Date: Tue, 18 Jan 2011 12:16:50 +0000 [thread overview]
Message-ID: <20110118121650.GC9719@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <eadb9f7e95a290b415baaa1d35547528@mail.gmail.com>
On Tue, Jan 18, 2011 at 05:42:22PM +0530, Santosh Shilimkar wrote:
> > -----Original Message-----
> > From: Russell King - ARM Linux [mailto:linux at arm.linux.org.uk]
> > Sent: Tuesday, January 18, 2011 5:01 PM
> > To: Santosh Shilimkar
> > Cc: Jonas Aaberg; linux-arm-kernel at lists.infradead.org;
> > STEricsson_nomadik_linux
> > Subject: Re: Why call calibrate_delay() in smp.c:
> > secondary_start_kernel()
> >
> > On Tue, Jan 18, 2011 at 03:46:54PM +0530, Santosh Shilimkar wrote:
> > > I did send a patch on the same some time back but the conclusion
> > > was we still need to have calibration.
> > >
> > > Have one more patch do deal with it so that platform can choose
> > > if they like to skip. My mailer might screw the patch hence
> > attaching
> > > the same
> >
> > Actually, the secondary cores probably get a far more accurate lpj
> > than the primary core as they don't have the interference from the
> > timer interrupt. So - if we care - we probably want to update the
> > primary lpj with the secondary's calibration value at boot.
> >
> > On the measurements I've made a couple of weeks ago, the lpj value
> > can be .7% too slow, resulting in udelay() giving shorter than
> > requested delays. I asked Linus about that, and he's happy with
> > that figure.
> >
> > So the myth which floats around on various lists about udelay()
> > giving
> > at least the requested delay is just that - a myth. It has always
> > given _approximately_ the requested delay on all architectures with
> > software loop based implementations (as well as, according to Linus,
> > some x86 tsc implementations of udelay.)
>
> Ok. Since the udelay() accuracy is acceptable now, what you think
> of my latest patch.
>
> It does help for the archs which are ok to skip the calibration .
> And since it's configurable with the proposed patch,
> the default kernel behavior is maintained if the option isn't
> selected.
We should also skip printing the "total bogomips" value too if CPUs were
skipped.
next prev parent reply other threads:[~2011-01-18 12:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-18 8:43 Why call calibrate_delay() in smp.c: secondary_start_kernel() Jonas Aaberg
2011-01-18 10:16 ` Santosh Shilimkar
2011-01-18 11:31 ` Russell King - ARM Linux
2011-01-18 12:12 ` Santosh Shilimkar
2011-01-18 12:16 ` Russell King - ARM Linux [this message]
2011-01-18 12:25 ` Santosh Shilimkar
2011-01-18 15:17 ` Linus Walleij
2011-01-18 15:30 ` Santosh Shilimkar
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=20110118121650.GC9719@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).