On Tue, Jan 22, 2008 at 10:21:34AM -0500, Alan Stern wrote:
> On Tue, 22 Jan 2008, Oliver Neukum wrote:
>
> > Am Montag, 21. Januar 2008 22:43:25 schrieb Sarah Sharp:
> > > + dev->connect_time = jiffies;
> > > + dev->active_duration = -jiffies;
> > > #endif
> > > if (root_hub)
On Tue, Jan 22, 2008 at 09:34:56AM +0100, Oliver Neukum wrote:
> Am Montag, 21. Januar 2008 22:43:25 schrieb Sarah Sharp:
> > + dev->connect_time = jiffies;
> > + dev->active_duration = -jiffies;
> > #endif
> > if (root_hub) /* Root hub always ok [and always wired] */
> >
On Tue, 22 Jan 2008, Oliver Neukum wrote:
> Am Montag, 21. Januar 2008 22:43:25 schrieb Sarah Sharp:
> > + dev->connect_time = jiffies;
> > + dev->active_duration = -jiffies;
> > #endif
> > if (root_hub) /* Root hub always ok [and always wired] */
> > dev->au
Am Montag, 21. Januar 2008 22:43:25 schrieb Sarah Sharp:
> + dev->connect_time = jiffies;
> + dev->active_duration = -jiffies;
> #endif
> if (root_hub) /* Root hub always ok [and always wired] */
> dev->authorized = 1;
> diff --git a/include/linux/usb.h b/incl
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. W