mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Jean Delvare <khali@linux-fr.org>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>,
	lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
	Pavel Machek <pavel@ucw.cz>,
	"Darrick J. Wong" <djwong@us.ibm.com>
Subject: Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
Date: Mon, 3 Sep 2007 20:22:25 -0300	[thread overview]
Message-ID: <20070903232225.GD3899@khazad-dum.debian.net> (raw)
In-Reply-To: <20070903180636.4096e7d5@hyperion.delvare>

On Mon, 03 Sep 2007, Jean Delvare wrote:
> On Sun, 2 Sep 2007 23:02:01 -0300, Henrique de Moraes Holschuh wrote:
> > On Sun, 02 Sep 2007, Jean Delvare wrote:
> > > I guess power[1-*]_average would be OK?
> > 
> > AFAIK, yes.  It is probably not 100% in sync with the power supply class,
> > though.
> 
> Is the power supply class creating sysfs files? I see a number of
> attributes listed in Documentation/power_supply_class.txt, but they are
> all uppercase, which doesn't seem suitable for sysfs file names. That
> document also doesn't list the numbering convention when multiple
> channels are present.

Looks like power supply needs some tweaks, then.

> My main worry is that we will have to add support for power measurement
> in libsensors, and I would like it to be as easy as possible. Thus
> sticking to the same naming convention hwmon have been using for years
> appears to be the best solution.

Agreed.

> I see that the power supply class units are 10^-6 A and 10^-6 W, so if
> we are supposed to be compatible, I guess we'll have to use this too.

There was a good reason for that, and people who deal with small portables
said that they needed 10^-4 A or somesuch, at which point it makes more
sense to just go to 10^-6 already.  I don't recall why 10^-6 W, though.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

  reply	other threads:[~2007-09-03 23:22 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-27 21:14 [PATCH] v1 of IBM power meter driver Darrick J. Wong
2007-08-28  1:50 ` Henrique de Moraes Holschuh
2007-08-28 11:19   ` [lm-sensors] " Jean Delvare
2007-08-28 16:28     ` Darrick J. Wong
2007-08-29  9:49       ` Jean Delvare
2007-08-29 12:45         ` Frank Phillips
2007-08-28 16:44     ` [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface Darrick J. Wong
2007-08-29  9:10       ` Jean Delvare
2007-08-29 14:50         ` Darrick J. Wong
2007-08-30  9:57           ` Jean Delvare
2007-09-11 16:43             ` Darrick J. Wong
2007-09-01 17:10       ` Pavel Machek
2007-09-01 18:05         ` Shem Multinymous
2007-09-01 19:44           ` [lm-sensors] " Henrique de Moraes Holschuh
2007-09-02 19:38             ` Jean Delvare
2007-09-03  2:02               ` Henrique de Moraes Holschuh
2007-09-03 16:06                 ` Jean Delvare
2007-09-03 23:22                   ` Henrique de Moraes Holschuh [this message]
2007-09-06  9:34                     ` Jean Delvare
2007-09-06 16:29                       ` Henrique de Moraes Holschuh
2007-08-28 16:49     ` [PATCH] v2 of IBM power meter driver Darrick J. Wong
2007-08-28 23:25       ` [PATCH] v3 " Darrick J. Wong
2007-09-11 13:23         ` Mark M. Hoffman
2007-09-11 13:59           ` Jean Delvare
2007-09-12  1:11           ` Darrick J. Wong
2007-09-14 19:29           ` [PATCH v2] hwmon: Update Documentation/hwmon/sysfs-interface Darrick J. Wong
2007-09-17 17:28             ` Jean Delvare
2007-09-17 18:43               ` Darrick J. Wong
2007-09-21  8:43                 ` Jean Delvare
2007-09-14 19:33           ` [PATCH v4] IBM power meter driver Darrick J. Wong
2007-10-09 12:00             ` Mark M. Hoffman
2007-10-09 16:44               ` Roel Kluin
2007-10-09 20:40                 ` Darrick J. Wong
2007-10-09 22:08                 ` [PATCH] ibmpex: Release IPMI user if hwmon registration fails Darrick J. Wong
2007-10-11 11:45                   ` Mark M. Hoffman
2007-10-13  0:29               ` [PATCH v4] IBM power meter driver Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070903232225.GD3899@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=djwong@us.ibm.com \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=mhoffman@lightlink.com \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome