cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: dual_bereta_r0x <dual_bereta_r0x@arenanetwork.com.br>,
	cpufreq@www.linux.org.uk
Subject: Re: 2.6.2: P4 ClockMod speed
Date: Mon, 15 Mar 2004 20:02:14 +0100	[thread overview]
Message-ID: <20040315190213.GD258@elf.ucw.cz> (raw)
In-Reply-To: <20040315135927.GA10259@dominikbrodowski.de>

On Po 15-03-04 14:59:27, Dominik Brodowski wrote:
> On Mon, Mar 15, 2004 at 01:44:06PM +0100, Pavel Machek wrote:
> > > On Sun, Mar 14, 2004 at 10:23:04PM +0100, Pavel Machek wrote:
> > > > Hi!
> > > > 
> > > > > > Hey, that's ugly. Values should be real.
> > > > > 
> > > > > Indeed. But if they're not known (and cpu_khz _is_ unreliable), what should
> > > > > be done?
> > > > 
> > > > Is it possible to measure cpu_khz with arbitrary precision if we make
> > > > measurement slower? I think so; if cpu_khz is too unreliable, perhaps
> > > > we can make measurement slower but more precise?
> > > 
> > > cpu_khz may be zero if the PIT is used as primary time source.
> > 
> > But that's a bug to be fixed, right?
> 
> Not necessarily: if the PIT is used and the TSC is disabled [there are some such
> systems, even modern ones...], you can't use the current cpu_khz detection
> routine. And please don't try to deduce it from BogoMIPS...

Ahha, I see. notsc. But, even if TSC is disabled for normal
timekeeping, it should be okay to use it to determine cpu_khz.

I believe that every CPU supported by cpufreq has TSC working
good-enough to measuring cpu_khz. While measuring cpu_khz, you are not
issuing halt, not changing cpu frequency, and you do not have problems
with unsynchronizes TSCs.
								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

  reply	other threads:[~2004-03-15 19:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 21:34 2.6.2: P4 ClockMod speed Dominik Brodowski
2004-02-16 21:48 ` dual_bereta_r0x
2004-02-16 21:57   ` Bruno Ducrot
2004-02-17  9:09   ` Dominik Brodowski
2004-02-26  1:28     ` dual_bereta_r0x
2004-03-03 19:12       ` Bruno Ducrot
2004-03-14 14:44       ` Dominik Brodowski
2004-03-14 21:23         ` Pavel Machek
2004-03-15  9:26           ` Dominik Brodowski
2004-03-15 12:44             ` Pavel Machek
2004-03-15 13:59               ` Dominik Brodowski
2004-03-15 19:02                 ` Pavel Machek [this message]
2004-02-25 17:43 ` Pavel Machek

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=20040315190213.GD258@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=cpufreq@www.linux.org.uk \
    --cc=dual_bereta_r0x@arenanetwork.com.br \
    /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