From patchwork Sat Jul 25 00:43:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 37273 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6P0bEft000742 for ; Sat, 25 Jul 2009 00:37:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754959AbZGYAf5 (ORCPT ); Fri, 24 Jul 2009 20:35:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754943AbZGYAf4 (ORCPT ); Fri, 24 Jul 2009 20:35:56 -0400 Received: from e34.co.us.ibm.com ([32.97.110.152]:53428 "EHLO e34.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754933AbZGYAfy (ORCPT ); Fri, 24 Jul 2009 20:35:54 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e34.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id n6P0WIW4000680; Fri, 24 Jul 2009 18:32:18 -0600 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n6P0ZsZc248108; Fri, 24 Jul 2009 18:35:54 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n6P0Zr37004052; Fri, 24 Jul 2009 18:35:54 -0600 Received: from elm3a70.beaverton.ibm.com (elm3a70.beaverton.ibm.com [9.47.66.70]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n6P0ZqiS004030; Fri, 24 Jul 2009 18:35:52 -0600 From: "Darrick J. Wong" Subject: [PATCH 1/2] hwmon: Enhance the sysfs API for power meters. To: "Darrick J. Wong" , Len Brown , Andrew Morton Cc: linux-kernel , lm-sensors , linux-acpi , Zhang Rui Date: Fri, 24 Jul 2009 17:43:29 -0700 Message-ID: <20090725004328.20709.57712.stgit@elm3a70.beaverton.ibm.com> In-Reply-To: <20090725004322.20709.96804.stgit@elm3a70.beaverton.ibm.com> References: <20090725004322.20709.96804.stgit@elm3a70.beaverton.ibm.com> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Augment the documentation of the hwmon sysfs API to accomodate ACPI power meters. Signed-off-by: Darrick J. Wong --- Documentation/hwmon/sysfs-interface | 44 +++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface index dcbd502..e196701 100644 --- a/Documentation/hwmon/sysfs-interface +++ b/Documentation/hwmon/sysfs-interface @@ -357,6 +357,14 @@ power[1-*]_average_interval Power use averaging interval Unit: milliseconds RW +power[1-*]_average_interval_max Maximum power use averaging interval + Unit: milliseconds + RO + +power[1-*]_average_interval_min Minimum power use averaging interval + Unit: milliseconds + RO + power[1-*]_average_highest Historical average maximum power use Unit: microWatt RO @@ -365,6 +373,16 @@ power[1-*]_average_lowest Historical average minimum power use Unit: microWatt RO +power[1-*]_average_max A notification is sent when power use + rises above this value. + Unit: microWatt + RW + +power[1-*]_average_min A notification is sent when power use + sinks below this value. + Unit: microWatt + RW + power[1-*]_input Instantaneous power use Unit: microWatt RO @@ -381,6 +399,32 @@ power[1-*]_reset_history Reset input_highest, input_lowest, average_highest and average_lowest. WO +power[1-*]_accuracy Accuracy of the power meter. + Unit: Percent + RO + +power[1-*]_alarm 1 if the system is drawing more power than the + cap allows; 0 otherwise. + RO + +power[1-*]_cap If power use rises above this limit, the + system should take action to reduce power use. + Unit: microWatt + RW + +power[1-*]_cap_hyst Margin of hysteresis built around capping and + notification. + Unit: microWatt + RW + +power[1-*]_cap_max Maximum cap that can be set. + Unit: microWatt + RO + +power[1-*]_cap_min Minimum cap that can be set. + Unit: microWatt + RO + ********** * Energy * **********