From 7876933de286b9a0621010729213565398854b37 Mon Sep 17 00:00:00 2001 From: Sarah Sharp Date: Thu, 17 Jan 2008 10:24:38 -0800 Subject: [PATCH] --- yaml --- r: 82255 b: refs/heads/master c: 979e524a9c563376af096d2d8629b9969fc06659 h: refs/heads/master i: 82253: 41e9071cd435f0dea243dbc1383ad17aa4ef0f9b 82251: 159f4dec6da62c0bd7c76b297ae1232e0ed8acc9 82247: 692c389e294b79f55eea71a3f56b377157f3fb64 82239: 4431a57705a6eee338fb0ea5c4a829b4ce763692 v: v3 --- [refs] | 2 +- trunk/Documentation/ABI/testing/sysfs-bus-usb | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1309a0a9f082..5d684608dabf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1512300689426cb98bfd7e567ee9fdfaaf61b7c7 +refs/heads/master: 979e524a9c563376af096d2d8629b9969fc06659 diff --git a/trunk/Documentation/ABI/testing/sysfs-bus-usb b/trunk/Documentation/ABI/testing/sysfs-bus-usb index 9734577d1711..11a3c1682cec 100644 --- a/trunk/Documentation/ABI/testing/sysfs-bus-usb +++ b/trunk/Documentation/ABI/testing/sysfs-bus-usb @@ -52,3 +52,36 @@ Description: facility is inherently dangerous, it is disabled by default for all devices except hubs. For more information, see Documentation/usb/persist.txt. + +What: /sys/bus/usb/device/.../power/connected_duration +Date: January 2008 +KernelVersion: 2.6.25 +Contact: Sarah Sharp +Description: + If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file + is present. When read, it returns the total time (in msec) + that the USB device has been connected to the machine. This + file is read-only. +Users: + PowerTOP + http://www.lesswatts.org/projects/powertop/ + +What: /sys/bus/usb/device/.../power/active_duration +Date: January 2008 +KernelVersion: 2.6.25 +Contact: Sarah Sharp +Description: + If CONFIG_PM and CONFIG_USB_SUSPEND are enabled, then this file + is present. When read, it returns the total time (in msec) + that the USB device has been active, i.e. not in a suspended + state. This file is read-only. + + Tools can use this file and the connected_duration file to + compute the percentage of time that a device has been active. + For example, + echo $((100 * `cat active_duration` / `cat connected_duration`)) + will give an integer percentage. Note that this does not + account for counter wrap. +Users: + PowerTOP + http://www.lesswatts.org/projects/powertop/