Bug 27627

Summary: machdep.tsc_freq does not exists on machines with APM or SMP
Product: Base System Reporter: larse <larse>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
smime.p7s none

Description larse 2001-05-25 00:30:07 UTC
The machdep.tsc_freq sysctl knob does not exists on systems that have
power management (APM) or SMP enabled. It's the easiest way to query
for probed CPU speed.

The patch below adds a new read-only sysctl know "hw.cpuhz" which is
initialized from tsc_freq at boot time. Since it's read-only, it is
ok to use on SMP and APM-enabled machines.

Please transmogrify the patch as needed for inclusion in the tree.
Comment 1 larse 2003-10-27 19:20:49 UTC
Fixed in -current. Please close the PR.
-- 
Lars Eggert <larse@isi.edu>           USC Information Sciences Institute
Comment 2 dwmalone freebsd_committer freebsd_triage 2003-10-28 08:40:56 UTC
State Changed
From-To: open->closed

Closed at submitter's request, as the problem is fixed in -current.