From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 1 Apr 2003 18:16:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 1 Apr 2003 18:16:54 -0500 Received: from deviant.impure.org.uk ([195.82.120.238]:31901 "EHLO deviant.impure.org.uk") by vger.kernel.org with ESMTP id ; Tue, 1 Apr 2003 18:16:53 -0500 Date: Wed, 2 Apr 2003 00:27:47 +0100 From: Dave Jones To: Greg KH Cc: Pavel Machek , Jan Dittmer , Mark Studebaker , azarah@gentoo.org, KML , Dominik Brodowski , sensors@Stimpy.netroedge.com Subject: Re: lm sensors sysfs file structure Message-ID: <20030401190240.GA6456@suse.de> Mail-Followup-To: Dave Jones , Greg KH , Pavel Machek , Jan Dittmer , Mark Studebaker , azarah@gentoo.org, KML , Dominik Brodowski , sensors@Stimpy.netroedge.com References: <20030325175603.GG15823@kroah.com> <1048705473.7569.10.camel@nosferatu.lan> <3E82024A.4000809@portrix.net> <20030326202622.GJ24689@kroah.com> <3E82292E.536D9196@paradyne.com> <20030326225234.GA27436@kroah.com> <3E82D678.9000807@portrix.net> <20030327172516.GA32667@kroah.com> <20030330192312.GB6666@zaurus.ucw.cz> <20030331224439.A7000@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030331224439.A7000@kroah.com> User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 31, 2003 at 10:44:39PM -0800, Greg KH wrote: > > Well, you had cV for PSU voltages and mV for cpu core voltage. I guess mV > > and mili-deg-C everywhere would be nicer. > As for why no floating point, it's a pain in the but to both output a > fixed point number from the kernel into floating point, and to parse a > floating point number from userspace within the kernel, turning it into > a fixed point number. With the proposal I wrote up, none of that is > needed, and all userspace has to do is divide by a factor of 10 to get > the proper value. FWIW, I'm taking the same fixed-point millivolt approach with the sysfs overrides for cpufreq. Having similar things in sysfs exporting the same units seems to be a good idea. Dave