From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932474AbVLFRfh (ORCPT ); Tue, 6 Dec 2005 12:35:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932598AbVLFRfh (ORCPT ); Tue, 6 Dec 2005 12:35:37 -0500 Received: from dtp.xs4all.nl ([80.126.206.180]:19776 "HELO abra2.bitwizard.nl") by vger.kernel.org with SMTP id S932474AbVLFRfh (ORCPT ); Tue, 6 Dec 2005 12:35:37 -0500 Date: Tue, 6 Dec 2005 18:35:31 +0100 From: Erik Mouw To: Dave Jones , Lee Revell , Andi Kleen , Venkatesh Pallipadi , Andrew Morton , cpufreq , linux-kernel Subject: Re: [PATCH] CPU frequency display in /proc/cpuinfo Message-ID: <20051206173531.GD27870@harddisk-recovery.com> References: <20051202181927.GD9766@wotan.suse.de> <20051202104320.A5234@unix-os.sc.intel.com> <20051204164335.GB32492@isilmar.linta.de> <20051204183239.GE14247@wotan.suse.de> <1133725767.19768.12.camel@mindpipe> <20051205011611.GA12664@redhat.com> <20051205130224.GC17993@harddisk-recovery.com> <20051205172513.GB12664@redhat.com> <20051206111349.GB32737@harddisk-recovery.com> <20051206165607.GA440@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051206165607.GA440@redhat.com> Organization: Harddisk-recovery.com User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2005 at 11:56:07AM -0500, Dave Jones wrote: > On Tue, Dec 06, 2005 at 12:13:49PM +0100, Erik Mouw wrote: > > Earlier in this thread you said (I should have quoted that, my fault): > > > > Adding any other interface to obtain this value is equally as broken. > > > > So I'm confused, sysfs one of the "any other interfaces"... > > userspace governors need to know the available frequencies to scale to, > which they obtain from sysfs. In addition, we maintain an index as to > which of those is currently chosen. However, programs should not rely > on this to be a "how fast is my CPU" status, as it's totally meaningless. > It's there purely for humans to see "Yes, X < Y, so I'm going at the > lower of the frequencies my CPU can do", not for programs to calculate > delays loops and such. Agreed, sysfs is the way to go. Erik -- +-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands