From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5334B2FA53 for ; Thu, 25 Jan 2001 17:34:18 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0PMY6w13200 for axp-list@listman.redhat.com; Thu, 25 Jan 2001 17:34:06 -0500 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0PMY5d13195 for ; Thu, 25 Jan 2001 17:34:05 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 24 Jan 2001 16:35:48 -0600 Received: by paralleldata.com from paralleldata.com (65.3.53.39::mail daemon; unverified,SLMail V2.5); Wed, 24 Jan 2001 16:35:47 -0600 Message-ID: <3A70AB0C.D98F0FE8@paralleldata.com> Date: Thu, 25 Jan 2001 16:39:08 -0600 From: "W Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Finding processor frequency References: <200101251636.LAA28416@ives.lkg.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Bharadwaj Yadavalli wrote: > > (resigned to parsing /proc/cpuinfo :-(( Maybe I missed it but why do you actually care what the Mhz of the processor is? Also, keep in mind the lmbench routine is often wrong so you would be better off looking at how the kernel determines the Mhz. I haven't seen that go wrong on any of my systems as yet. Including PII/PIII/P4/G4/Alphas. You might be able to lift that piece of code and use it which would give you exactly what you're looking for. Note that is not the same thing as Bogomips. I suspect it will be assembly language though. Check the "arch/*/kernel/time.c" routines to see how the kernel does it. Wes