Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jul 2001 15:09:53 -0700
From:      Lars Eggert <larse@ISI.EDU>
To:        Mike Smith <msmith@freebsd.org>
Cc:        Peter Pentchev <roam@orbitel.bg>, arch@FreeBSD.org, hardware@FreeBSD.org
Subject:   Re: New hw.cpuhz sysctl as per PR i386/27627
Message-ID:  <3B463731.2090001@isi.edu>
References:  <200107062100.f66L0fa01267@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith wrote:

> CPU speeds aren't constants; this is probably not the right place to put 
> it.  It also assumes there's only one CPU, which isn't acceptable.


Being the author of the original patch, I agree that its a hack - but 
it's better than nothing :-) Plus, it doesn't necessarily assume only 
one CPU - it does assume they all have the same fixed speed though.


> It would be better to have a per-cpu "cupuinfo" struct, and populate it 
> from a variety of sources. 

All for it.
-- 
Lars Eggert <larse@isi.edu>               Information Sciences Institute
http://www.isi.edu/larse/              University of Southern California


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B463731.2090001>