Bug 27543

Summary: /proc/cpuinfo does not handle SMP hosts
Product: Base System Reporter: Jim.Pirzyk <Jim.Pirzyk>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jim.Pirzyk 2001-05-22 20:40:01 UTC
	cat'ing /compat/linux/proc/cpuinfo only reports information on the
	first cpu, not all of them:

Jim.Pirzyk@brother:/usr/local/etc/rc.d
36>cat /compat/linux/proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
stepping        : 6
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr xmm
cpu MHz         : 930.96
bogomips        : 930.96

Where it should be this:

Jim.Pirzyk@brother:/usr/local/etc/rc.d
36>cat /compat/linux/proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
stepping        : 6
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr xmm
cpu MHz         : 930.96
bogomips        : 930.96

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
stepping        : 6
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr xmm
cpu MHz         : 930.96
bogomips        : 930.96

How-To-Repeat: 	cat /compat/linux/proc/cpuinfo on an smp host.
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2001-05-26 18:06:42 UTC
Responsible Changed
From-To: freebsd-bugs->des

linprocfs is mine.
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2003-08-19 11:31:01 UTC
State Changed
From-To: open->suspended
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2003-08-19 11:32:03 UTC
Responsible Changed
From-To: des->pirzyk

I committed something similar to -CURRENT, please handle -STABLE yourself.
Comment 4 Tilman Keskinoz freebsd_committer freebsd_triage 2004-04-23 15:19:26 UTC
Responsible Changed
From-To: pirzyk->freebsd-bugs

jim pirzyk returned his commit bit one year ago
Comment 5 Craig Rodrigues freebsd_committer freebsd_triage 2005-10-05 13:30:11 UTC
State Changed
From-To: suspended->closed

Equivalent patch is in RELENG_5 and higher.