From owner-freebsd-arch Fri Jul 6 15: 9:59 2001 Delivered-To: freebsd-arch@freebsd.org Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by hub.freebsd.org (Postfix) with ESMTP id 39B1637B406; Fri, 6 Jul 2001 15:09:55 -0700 (PDT) (envelope-from larse@ISI.EDU) Received: from isi.edu (hbo.isi.edu [128.9.160.75]) by boreas.isi.edu (8.11.2/8.11.2) with ESMTP id f66M9rG01256; Fri, 6 Jul 2001 15:09:53 -0700 (PDT) Message-ID: <3B463731.2090001@isi.edu> Date: Fri, 06 Jul 2001 15:09:53 -0700 From: Lars Eggert User-Agent: Mozilla/5.0 (X11; U; FreeBSD 4.2-RELEASE i386; en-US; rv:0.9) Gecko/20010529 X-Accept-Language: en, de MIME-Version: 1.0 To: Mike Smith Cc: Peter Pentchev , arch@FreeBSD.org, hardware@FreeBSD.org Subject: Re: New hw.cpuhz sysctl as per PR i386/27627 References: <200107062100.f66L0fa01267@mass.dis.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 Information Sciences Institute http://www.isi.edu/larse/ University of Southern California To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message