Re: /sys/.../power/autosuspend format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday, August 28, 2010, Alan Stern wrote:
> On Sat, 28 Aug 2010, Oliver Neukum wrote:
> 
> > Am Freitag, 27. August 2010, 17:36:53 schrieb Alan Stern:
> > > Oliver:
> > > 
> > > For SCSI devices, the autosuspend idle-delay time will have to vary
> > > from under one second up to an hour or so.  The current USB
> > > /sys/.../power/autosuspend format, which simply lists the timeout in
> > > seconds, won't be adequate.
> > 
> > I see.
> > 
> > > I thought the format could be changed to [MM:]SS[.FFF] where MM is
> > > minutes, SS is seconds, and FFF is milliseconds.  It would be backward
> > > compatible with the existing format for input, although the output
> > > appearance would be different.  The same format could be used for USB
> > > as well (in fact, the attribute set and show routines could go in
> > > the PM core, making them easy to share among subsystems).
> > > 
> > > What do you think?
> > 
> > It seems to me that the standard for /sys is to use miliseconds.
> 
> "45 minutes" expressed in milliseconds isn't very easy to comprehend;
> it comes out as "2700000".  Compare this to "45:00.000".  I'm not sure
> that's the best way to go.

Well, that depends on whether or not you intend to make them human-readable.
 While the latter is definitely better for humans, the former may be more
convenient for software processing.

Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux