* Satoshi - Ports Wraith - Asami (as...@freebsd.org) [990903 12:14]: > * From: Jonathan Lemon <jle...@americantv.com> > > * hw.clockrate: 132 > > * Doing this for Pentium and better systems should be trivial. Doing > * it for 486 and lower would just add a timing loop. Doing it for SMP > * would be harder. > * > * hw.cpu0.clockrate: 233 > * hw.cpu1.clockrate: 233 > * > * Possibly? The implementer gets to pick a better name than these. > >hw.clockrate.cpu0: 233 >hw.clockrate.cpu1: 233 > >(cpu0 only for uni-procs, of course).
This sounds like a good solution. I don't know why we can't detect speed on SMP boxes and I doubt the code will make things clear to me [seeing my third rank coding abilities]. But we could probe the first CPU, get it's clockspeed and since it's SMP be certain that all other CPU's would have the same speed. This might not be the cleanest solution should AMP type systems ever surface. [If they ever] Else, anyone care to detail exactly why we can't detect it? cheers, -- Jeroen Ruigrok van der Werven asmodai(at)wxs.nl The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai> Network/Security Specialist BSD: Technical excellence at its best Knowledge comes, but wisdom lingers. To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message