Bug 20029

Summary: linprocfs does not accurately emulate Linux 2.2.x /proc/cpuinfo
Product: Base System Reporter: brad <brad>
Component: kernAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description brad 2000-07-19 07:40:00 UTC
linprocfs does not accurately emulate the Linux 2.2.x /proc/cpuinfo file.
Specifically, it uses "cpu       : 686" where Linux uses "cpu family   : 6",
and does not include flags or clock speed.

Fix: The following patch will fix 'cpu family' lines and add 'flags' and 'cpu
MHz' lines.

How-To-Repeat: 
Compare the output of /compat/linux/proc/cpuinfo to real Linux /proc/cpuinfo:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 7
model name      : Pentium III (Katmai)
stepping        : 2
cpu MHz         : 448.975
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
sep_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 3
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov
pat pse36 pn mmx fxsr xmm
bogomips        : 894.57
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-07-19 08:48:40 UTC
Responsible Changed
From-To: freebsd-bugs->des

Over to the maintainer.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2000-10-31 20:47:55 UTC
State Changed
From-To: open->closed

Fixed in -CURRENT and -STABLE.