Re: [PATCH 1/2] Define sysfs interfaces for ibmaem driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darrick J. Wong <djwong@...>
Cc: Mark M. Hoffman <mhoffman@...>, linux-kernel <linux-kernel@...>, lm-sensors <lm-sensors@...>
Date: Tuesday, April 1, 2008 - 4:22 am

On Mon, 31 Mar 2008 14:01:35 -0700, Darrick J. Wong wrote:

OK. Another question that comes to my mind now is the unit... Do the
chips express the value in Joules internally? I would have expected
Watt-hours. Of course we can convert as needed, but if all known chips
use the same unit then I think we should that unit too, to minimize the
required conversions.


It really depends on what the chips report. Typically the drivers
should report the values from the chip without too much tinkering
(other than conversion to standard units). If some chips can report
both "instantaneous" and "average" power uses, it makes sense to have
both sets of filenames in the standard interface. If not then I am fine
getting rid of one set.


I don't think there is any precedent yet. I suggested this for
unambiguity rather than consistency.


Oh well, I guess that anything shorter than 1 ms can be considered
"instantaneous power use", so we can go with millisecond.

Out of curiosity, what are the values supported by the ibmaem chip?

-- 
Jean Delvare
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] Define sysfs interfaces for ibmaem driver, Darrick J. Wong, (Fri Mar 28, 5:36 pm)
Re: [PATCH 1/2] Define sysfs interfaces for ibmaem driver, Darrick J. Wong, (Mon Mar 31, 5:01 pm)
Re: [PATCH 1/2] Define sysfs interfaces for ibmaem driver, Jean Delvare, (Tue Apr 1, 4:22 am)
Re: [PATCH 1/2] Define sysfs interfaces for ibmaem driver, Darrick J. Wong, (Tue Apr 1, 4:47 am)