On Wed, Jan 16, 2008 at 08:48:00AM -0800, Greg KH wrote: > On Wed, Jan 16, 2008 at 03:56:06AM -0800, Andrew Morton wrote: > > On Fri, 11 Jan 2008 10:36:20 -0800 Greg KH <[EMAIL PROTECTED]> wrote: > > > > > On Fri, Dec 21, 2007 at 04:54:15PM -0800, Sarah Sharp wrote: > > > > 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 jiffies) 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. > > > > > > I have no objection to this, but can you document this somewhere in > > > Documentation/ABI/ please? I'll take a second patch for that :) > > > > This patch breaks the build with CONFIG_PM=n > > Hm, I think that is my fault, I tweaked the patch by hand, let me see > what I broke :(
Yes, this was my fault, I've fixed the patch up and pushed it out. Sorry about that. greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html