From: george anzinger <george@mvista.com>
To: Nico Schottelius <nicos-mutt@pcsystems.de>
Cc: Joshua Uziel <uzi@uzix.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: cpu speed is 165mhz instead of real 650mhz
Date: Wed, 24 Jul 2002 13:13:18 -0700 [thread overview]
Message-ID: <3D3F0A5E.E548C8DA@mvista.com> (raw)
In-Reply-To: 20020724131642.GA479@schottelius.org
Nico Schottelius wrote:
>
> Joshua Uziel [Wed, Jul 24, 2002 at 03:27:09AM -0700]:
> > * Nico Schottelius <nicos-mutt@pcsystems.de> [020724 02:03]:
> > > This periodicly appears in my system. The Kernel seems to misdetect the
> > > right cpu speed and then it's running only at 165mhz.
> > > I don't really understand why this happens, there's no acpi enabled, which
> > > caused this failure the last time.
> >
> > Is this a notebook computer? Is it that you're sometimes booting it up
> > while the system is unplugged (ie. on battery)?
>
> yes,it is, but slowing down to 500 mhz is the only available speedstep
> option.
>
> 165 or similar is not supported (afaik) by the bios/processor.
>
The cpu speed is detected by comparing the TSC against the
PIT. The PIT is used to drive the clock. If it is wrong by
this much you should see time drifting like mad. If the TSC
is wrong, you should see errors in the sub 1/HZ correction
applied to get_time_of_day(). You could detect this by
looping on a get_time_of_day() call and noticing that time
slides ahead 3/HZ seconds and then back each tick. What
would be happening is that the interpolation code would be
taking the fast TSC (i.e. 500MHZ when it thought it was 165)
and be pushing time out beyond the next tick value. Each
tick this would reset and be replayed. If neither of these
is happening, the reported value is most likely what is
really going on.
--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
next prev parent reply other threads:[~2002-07-24 20:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-24 11:01 cpu speed is 165mhz instead of real 650mhz Nico Schottelius
2002-07-24 10:27 ` Joshua Uziel
2002-07-24 13:16 ` Nico Schottelius
2002-07-24 20:13 ` george anzinger [this message]
2002-08-02 3:57 ` Nico Schottelius
-- strict thread matches above, loose matches on Subject: below --
2002-07-24 11:39 Nico Schottelius
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=3D3F0A5E.E548C8DA@mvista.com \
--to=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nicos-mutt@pcsystems.de \
--cc=uzi@uzix.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