From: olof@lixom•net (Olof Johansson)
To: Matt Sealey <matt@genesi-usa•com>
Cc: linuxppc-dev@ozlabs•org, paulus@samba•org
Subject: Re: [PATCH] powerpc: Show current speed in /proc/cpuinfo
Date: Fri, 27 Apr 2007 13:14:10 -0500 [thread overview]
Message-ID: <20070427181410.GC15582@lixom.net> (raw)
In-Reply-To: <4631BBB1.9010705@genesi-usa.com>
On Fri, Apr 27, 2007 at 10:00:33AM +0100, Matt Sealey wrote:
> Would it not be relevant to keep listing the maximum CPU speed as well
> as the real, current CPU speed?
>
> Intel encode this into their CPUID string and when I bring up Windows' System
> Properties dialog I get this;
>
> Intel(R) Pentium(R) M processor 1.70GHz
> 593MHz, 512MB of RAM
>
> So you can always, always find out very easily what spec your processor
> is, and not just what cpufreq has done with it?
On a system running cpufreq, you might not even have booted
the system at full speed, so the only way to know for sure
what the max speed is, is to look at the one in cpufreq
(/sys/devices/system/cpu/cpu<x>/cpufreq/scaling_max_freq).
For non-cpufreq platforms, the speed reported will be the same as before,
which on most platforms is whatever firmware tells us the speed of the
cpu is.
> > + /* cpufreq_speed_get() is in kHz */
> > + freq = cpufreq_quick_get(cpu_id);
>
> Is it speed or quick? This and the comment below confused me, KHz or Hz? :D
It's quick, I'll fix that. ppc_proc_freq is in Hz, freq in kHz, so you
need to divide.
-Olof
next prev parent reply other threads:[~2007-04-27 18:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 8:41 [PATCH] powerpc: Show current speed in /proc/cpuinfo Olof Johansson
2007-04-27 9:00 ` Matt Sealey
2007-04-27 9:25 ` Benjamin Herrenschmidt
2007-04-27 18:14 ` Olof Johansson [this message]
2007-04-27 9:24 ` Benjamin Herrenschmidt
2007-04-27 17:51 ` Olof Johansson
2007-04-30 3:53 ` [PATCH v2] " Olof Johansson
2007-05-01 23:48 ` Arnd Bergmann
2007-05-04 3:15 ` Olof Johansson
2007-05-04 3:16 ` [PATCH v3] " Olof Johansson
2007-05-04 3:39 ` Stephen Rothwell
2007-05-04 3:46 ` Olof Johansson
2007-05-04 4:00 ` Paul Mackerras
2007-05-04 4:39 ` [PATCH] pasemi: update ppc_proc_freq from cpufreq driver Olof Johansson
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=20070427181410.GC15582@lixom.net \
--to=olof@lixom$(echo .)net \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=matt@genesi-usa$(echo .)com \
--cc=paulus@samba$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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