linux/arch/i386/kernel/cpu
Venkatesh Pallipadi 95235ca2c2 [CPUFREQ] CPU frequency display in /proc/cpuinfo
What is the value shown in "cpu MHz" of /proc/cpuinfo when CPUs are capable of
changing frequency?

Today the answer is: It depends.
On i386:
SMP kernel - It is always the boot frequency
UP kernel - Scales with the frequency change and shows that was last set.

On x86_64:
There is one single variable cpu_khz that gets written by all the CPUs. So,
the frequency set by last CPU will be seen on /proc/cpuinfo of all the
CPUs in the system. What you see also depends on whether you have constant_tsc
capable CPU or not.

On ia64:
It is always boot time frequency of a particular CPU that gets displayed.

The patch below changes this to:
Show the last known frequency of the particular CPU, when cpufreq is present. If
cpu doesnot support changing of frequency through cpufreq, then boot frequency
will be shown. The patch affects i386, x86_64 and ia64 architectures.

Signed-off-by: Venkatesh Pallipadi<venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
2005-12-06 19:35:11 -08:00
..
cpufreq [CPUFREQ] Move PMBASE reading away and do it only once at initialization time 2005-12-06 19:27:15 -08:00
mcheck [PATCH] x86: add MCE resume 2005-11-07 07:53:30 -08:00
mtrr [PATCH] x86_64: Force correct address space size for MTRR on some 64bit Intel Xeons 2005-11-14 19:55:16 -08:00
amd.c [PATCH] x86-64/i386: Intel HT, Multi core detection fixes 2005-11-14 19:55:16 -08:00
centaur.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
changelog Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
common.c Merge x86-64 update from Andi 2005-11-14 19:56:02 -08:00
cpu.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cyrix.c [PATCH] i386: inline asm cleanup 2005-09-05 00:06:11 -07:00
intel_cacheinfo.c [PATCH] x86_64: x86_64/i386 fix Intel cache detection code assumption about threads sharing 2005-11-14 19:55:16 -08:00
intel.c Merge x86-64 update from Andi 2005-11-14 19:56:02 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nexgen.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc.c [CPUFREQ] CPU frequency display in /proc/cpuinfo 2005-12-06 19:35:11 -08:00
rise.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
transmeta.c [PATCH] transmeta: CONFIG_PROC_FS=n build fix 2005-08-01 21:38:00 -07:00
umc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00