[PATCH] powerpc: Show current speed in /proc/cpuinfo
olof at lixom.net
Sat Apr 28 04:14:10 EST 2007
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
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
> > + /* 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.
More information about the Linuxppc-dev