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 9D56E2F110 for ; Wed, 24 Jan 2001 18:31:48 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0ONVZD15545 for axp-list@listman.redhat.com; Wed, 24 Jan 2001 18:31:35 -0500 Received: from zmamail03.zma.compaq.com (zmamail03.zma.compaq.com [161.114.64.103]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0ONVYd15539 for ; Wed, 24 Jan 2001 18:31:34 -0500 Received: by zmamail03.zma.compaq.com (Postfix, from userid 12345) id DF4C8732A; Wed, 24 Jan 2001 18:31:41 -0500 (EST) Received: from ives.lkg.dec.com (ives.lkg.dec.com [16.24.240.4]) by zmamail03.zma.compaq.com (Postfix) with ESMTP id 39ADA6CDF for ; Wed, 24 Jan 2001 18:31:39 -0500 (EST) Received: by ives.lkg.dec.com (8.8.8/1.1.19.2/18May00-1129AM) id SAA24181; Wed, 24 Jan 2001 18:31:38 -0500 (EST) From: Bharadwaj Yadavalli Message-Id: <200101242331.SAA24181@ives.lkg.dec.com> Subject: Finding processor frequency To: axp-list@redhat.com Date: Wed, 24 Jan 2001 18:31:38 -0500 (EST) X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 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 Is there a system call that fills a variable of type struct hwrpb_struct (asm/hwrpb.h) so that I can find the processor frequency from the user-land? I do know that cat /proc/cpuinfo prints out, among other things, the processor frequency. I do not feel very comfortable grep'ing for the string "cycle frequency [Hz]" and picking up the value after the ":" simply because the string "cycle frequency [Hz]" could change to something else in future. There is a lesser chance of the structure member change in hwrpb_struct. Bharadwaj