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. 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. 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. -- Jean Delvare - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: Henrique de Moraes Holschuh <[email protected]>
- Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- References:
- [PATCH] v1 of IBM power meter driver
- From: "Darrick J. Wong" <[email protected]>
- Re: [PATCH] v1 of IBM power meter driver
- From: Henrique de Moraes Holschuh <[email protected]>
- Re: [lm-sensors] [PATCH] v1 of IBM power meter driver
- From: Jean Delvare <[email protected]>
- [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: "Darrick J. Wong" <[email protected]>
- Re: [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: Pavel Machek <[email protected]>
- Re: [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: "Shem Multinymous" <[email protected]>
- Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: Henrique de Moraes Holschuh <[email protected]>
- Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: Jean Delvare <[email protected]>
- Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- From: Henrique de Moraes Holschuh <[email protected]>
- [PATCH] v1 of IBM power meter driver
- Prev by Date: Re: [patches] [patch 3/5] x86: Add PCI extended config space access for AMD Barcelona
- Next by Date: Re: GPL weasels and the atheros stink
- Previous by thread: Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- Next by thread: Re: [lm-sensors] [PATCH] hwmon: Add power meters to Documentation/hwmon/sysfs-interface
- Index(es):