Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754989AbZGYAf5 (ORCPT ); Fri, 24 Jul 2009 20:35:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754955AbZGYAf4 (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 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2341 Lines: 84 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(-) 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 * ********** -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/