Files
linux-legacy/include/linux
Sarah Sharp 1512300689 USB: Export suspend statistics
This patch exports two statistics to userspace:
/sys/bus/usb/device/.../power/connected_duration
/sys/bus/usb/device/.../power/active_duration

connected_duration is the total time (in msec) that the device has
been connected.  active_duration is the total time the device has not
been suspended.  With these two statistics, tools like PowerTOP can
calculate the percentage time that a device is active, i.e. not
suspended or auto-suspended.

Users can also use the active_duration to check if a device is actually
autosuspended.  Currently, they can set power/level to auto and
power/autosuspend to a positive timeout, but there's no way to know from
userspace if a device was actually autosuspended without looking at the
dmesg output.  These statistics will be useful in creating an automated
userspace script to test autosuspend for USB devices.

Signed-off-by: Sarah Sharp <sarah.a.sharp@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-02-01 14:35:00 -08:00
..
2008-01-28 14:54:13 -08:00
2007-12-26 19:36:35 -08:00
2008-01-23 05:24:15 -05:00
2008-01-28 15:00:14 -08:00
2008-02-01 11:34:49 +01:00
2008-01-29 21:55:15 +01:00
2008-01-28 14:54:10 -08:00
2008-01-23 05:24:14 -05:00
2008-01-30 13:31:48 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
2008-01-25 21:08:02 +01:00
2008-01-30 13:31:10 +01:00
2008-01-23 21:23:13 -05:00
2008-01-30 13:31:56 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:58:27 -05:00
2008-01-25 21:08:33 +01:00
2008-01-28 14:51:22 +01:00
2008-01-30 13:30:27 +01:00
2008-01-27 18:14:50 +01:00
2008-01-27 18:14:52 +01:00
2008-01-28 15:08:27 -08:00
2008-01-28 15:07:58 -08:00
2008-01-28 15:07:57 -08:00
2008-01-28 14:55:09 -08:00
2008-01-28 14:55:09 -08:00
2008-01-31 19:26:46 -08:00
2008-01-31 19:28:20 -08:00
2008-01-28 23:58:27 -05:00
2008-01-08 16:10:35 -08:00
2008-01-24 20:40:05 -08:00
2008-01-25 21:08:34 +01:00
2008-01-30 13:33:13 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 14:56:29 -08:00
2008-01-28 14:54:18 -08:00
2008-01-30 02:06:08 -05:00
2008-01-28 23:21:18 +01:00
2008-01-30 23:27:58 +01:00
2008-01-31 19:28:36 -08:00
2007-12-27 23:55:13 -05:00
2008-01-28 15:01:36 -08:00
2008-01-30 13:30:53 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-30 13:31:47 +01:00
2008-01-31 19:26:46 -08:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-25 21:08:33 +01:00
2008-01-31 19:28:30 -08:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-30 13:31:20 +01:00
2008-01-25 21:08:34 +01:00
2008-01-31 22:05:48 +01:00
2008-01-24 20:40:26 -08:00
2008-02-01 14:35:00 -08:00
2007-12-26 19:36:35 -08:00
2008-01-28 14:58:25 -08:00